Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index a719a62a373684f7c5528b32fc3938de91023551..941fa688d5af146926731d605cccc08dc2cb0a7d 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -146,7 +146,8 @@ class DebugLocalContext { |
inline v8::Context* operator*() { return *context_; } |
inline bool IsReady() { return !context_.IsEmpty(); } |
void ExposeDebug() { |
- v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); |
+ v8::internal::Isolate* isolate = v8::internal::Isolate::Current(); |
+ v8::internal::Debug* debug = isolate->debug(); |
// Expose the debug context global object in the global object for testing. |
debug->Load(); |
debug->debug_context()->set_security_token( |
@@ -156,7 +157,7 @@ class DebugLocalContext { |
v8::Utils::OpenHandle(*context_->Global()))); |
Handle<v8::internal::String> debug_string = |
FACTORY->LookupAsciiSymbol("debug"); |
- SetProperty(global, debug_string, |
+ SetProperty(isolate, global, debug_string, |
Handle<Object>(debug->debug_context()->global_proxy()), DONT_ENUM, |
::v8::internal::kNonStrictMode); |
} |