Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index 1cb455efb56bcddc01576054648af72c20c13328..df01b43cb54d0895f82a5a847a3fac10e79888cd 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -326,7 +326,7 @@ Object* EvalFromScript(Isolate* isolate, Handle<Script> script) { |
} |
MaybeHandle<String> FormatEvalOrigin(Isolate* isolate, Handle<Script> script) { |
- Handle<Object> sourceURL = Script::GetNameOrSourceURL(script); |
+ Handle<Object> sourceURL(script->GetNameOrSourceURL(), isolate); |
if (!sourceURL->IsUndefined(isolate)) { |
DCHECK(sourceURL->IsString()); |
return Handle<String>::cast(sourceURL); |