Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index a467333060ee6635e5cce1aac7b83d6474a72afa..502187a9a70d9d9437689d4c98df7104910a3666 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -753,12 +753,11 @@ void Shell::InstallUtilityScript(Isolate* isolate) { |
// Install the debugger object in the utility scope |
i::Debug* debug = reinterpret_cast<i::Isolate*>(isolate)->debug(); |
debug->Load(); |
- i::Handle<i::Context> debug_context = debug->debug_context(); |
i::Handle<i::JSObject> js_debug |
- = i::Handle<i::JSObject>(debug_context->global_object()); |
+ = i::Handle<i::JSObject>(debug->debug_context()->global_object()); |
utility_context->Global()->Set(String::NewFromUtf8(isolate, "$debug"), |
Utils::ToLocal(js_debug)); |
- debug_context->set_security_token( |
+ debug->debug_context()->set_security_token( |
reinterpret_cast<i::Isolate*>(isolate)->heap()->undefined_value()); |
// Run the d8 shell utility script in the utility context |