Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index dd6d4935e6d0cc4beaf944a4b131d14bd1e7412d..3017f3f1e50710a3650032b9f78297435a64d18f 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -12227,7 +12227,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugSetScriptSource) { |
ASSERT(args.length() == 2); |
CONVERT_ARG_HANDLE_CHECKED(JSValue, script_wrapper, 0); |
- Handle<String> source(String::cast(args[1])); |
+ CONVERT_ARG_HANDLE_CHECKED(String, source, 1); |
RUNTIME_ASSERT(script_wrapper->value()->IsScript()); |
Handle<Script> script(Script::cast(script_wrapper->value())); |