Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index ea8b8754d7c4c9738475061777cf19a92f6bcfbe..fb75d81c24729a592a833254902896f32050f125 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -772,7 +772,8 @@ void Shell::InstallUtilityScript(Isolate* isolate) { |
= 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()); |
+ debug->debug_context()->set_security_token( |
+ reinterpret_cast<i::Isolate*>(isolate)->heap()->undefined_value()); |
#endif // ENABLE_DEBUGGER_SUPPORT |
// Run the d8 shell utility script in the utility context |