Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 25a75103e3704e5f7938877b8d56fee2ea9b2ffc..59b2bad9ca2037c3f1c78f2176836e2a5d2f4766 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -115,9 +115,8 @@ |
v8::Utils::OpenHandle(*context_->Global()))); |
Handle<v8::internal::String> debug_string = |
factory->InternalizeOneByteString(STATIC_CHAR_VECTOR("debug")); |
- v8::internal::JSObject::SetOwnPropertyIgnoreAttributes( |
- global, debug_string, handle(debug_context->global_proxy()), DONT_ENUM) |
- .Check(); |
+ v8::internal::Runtime::DefineObjectProperty(global, debug_string, |
+ handle(debug_context->global_proxy(), isolate), DONT_ENUM).Check(); |
} |
private: |