Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index d2cf0e0061efa22f430eea9b85359dda44c23440..1af91e1e53b16f81d10743e44e61d134bf6d63f7 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -109,10 +109,8 @@ class DebugLocalContext { |
v8::Utils::OpenHandle(*context_->Global()))); |
Handle<v8::internal::String> debug_string = |
factory->InternalizeOneByteString(STATIC_ASCII_VECTOR("debug")); |
- v8::internal::Runtime::SetObjectProperty(isolate, global, debug_string, |
- Handle<Object>(debug_context->global_proxy(), isolate), |
- DONT_ENUM, |
- ::v8::internal::SLOPPY).Check(); |
+ v8::internal::Runtime::DefineObjectProperty(global, debug_string, |
+ handle(debug_context->global_proxy(), isolate), DONT_ENUM).Check(); |
} |
private: |