Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 6859cd423fb47512c74bd87c1b7909e16875fd9e..152f8c2531b9387d042839bf0269e37847085cb8 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -599,6 +599,9 @@ v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, |
Handle<Object> GetScriptNameOrSourceURL(Handle<Script> script) { |
Isolate* isolate = script->GetIsolate(); |
+ if (!isolate->IsInitialized()) { |
+ return isolate->factory()->undefined_value(); |
+ } |
Handle<String> name_or_source_url_key = |
isolate->factory()->InternalizeOneByteString( |
STATIC_ASCII_VECTOR("nameOrSourceURL")); |