Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index bfd9f5e918fd247778372daf947a722e83ab1064..8715f6688b73eb4cb08d32121694386907478d49 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -2204,6 +2204,8 @@ bool Genesis::InstallSpecialObjects(Handle<Context> native_context) { |
debug_context->set_security_token(native_context->security_token()); |
Handle<String> debug_string = |
factory->InternalizeUtf8String(FLAG_expose_debug_as); |
+ uint32_t index; |
+ if (debug_string->AsArrayIndex(&index)) return true; |
Handle<Object> global_proxy(debug_context->global_proxy(), isolate); |
JSObject::AddProperty(global, debug_string, global_proxy, DONT_ENUM); |
} |