Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index c716c1ccd341cd15698b1ad938ed8021fb302941..74fb88dc918a10c2ae8559032e4dfc480a336532 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1053,7 +1053,7 @@ void Shell::InstallUtilityScript() { |
i::Debug* debug = i::Isolate::Current()->debug(); |
debug->Load(); |
i::Handle<i::JSObject> js_debug |
- = i::Handle<i::JSObject>(debug->debug_context()->global()); |
+ = i::Handle<i::JSObject>(debug->debug_context()->global_object()); |
utility_context_->Global()->Set(String::New("$debug"), |
Utils::ToLocal(js_debug)); |
debug->debug_context()->set_security_token(HEAP->undefined_value()); |