Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 8248ada22154b114f17239530577bf7f7a16cbbc..17b904b046ebb757614c2e2b7f5e5eb5de14cf7f 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -252,7 +252,7 @@ class CallDepthScope { |
static ScriptOrigin GetScriptOriginForScript(i::Isolate* isolate, |
i::Handle<i::Script> script) { |
- i::Handle<i::Object> scriptName(i::Script::GetNameOrSourceURL(script)); |
+ i::Handle<i::Object> scriptName(script->GetNameOrSourceURL(), isolate); |
i::Handle<i::Object> source_map_url(script->source_mapping_url(), isolate); |
v8::Isolate* v8_isolate = |
reinterpret_cast<v8::Isolate*>(script->GetIsolate()); |