Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index c1f5d3aa77c93d26d8c2b4f8bd20491b2abadbcd..2689f3f6cb9bf5c80c88d49bd2ff5307ae83c44d 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13605,15 +13605,11 @@ int Script::GetLineNumber(int code_pos) const { |
return info.line; |
} |
-Handle<Object> Script::GetNameOrSourceURL(Handle<Script> script) { |
- Isolate* isolate = script->GetIsolate(); |
- |
+Object* Script::GetNameOrSourceURL() { |
+ Isolate* isolate = GetIsolate(); |
// Keep in sync with ScriptNameOrSourceURL in messages.js. |
- |
- if (!script->source_url()->IsUndefined(isolate)) { |
- return handle(script->source_url(), isolate); |
- } |
- return handle(script->name(), isolate); |
+ if (!source_url()->IsUndefined(isolate)) return source_url(); |
+ return name(); |
} |