Index: test/cctest/test-object-observe.cc |
diff --git a/test/cctest/test-object-observe.cc b/test/cctest/test-object-observe.cc |
index ce5611183c71b463293d53eb634b418c6d036fc7..4c32d44dcb3fa5d4c624068327b593b76c840e77 100644 |
--- a/test/cctest/test-object-observe.cc |
+++ b/test/cctest/test-object-observe.cc |
@@ -526,7 +526,7 @@ static Handle<Object> CreateAccessCheckedObject( |
Handle<Object> instance = tmpl->NewInstance(); |
Handle<Object> global = instance->CreationContext()->Global(); |
global->Set(String::NewFromUtf8(isolate, "obj"), instance); |
- global->Set(kBlockedContextIndex, v8::True()); |
+ global->Set(kBlockedContextIndex, v8::True(isolate)); |
return instance; |
} |
@@ -761,8 +761,9 @@ TEST(HiddenPropertiesLeakage) { |
"Object.observe(obj, observer);"); |
Handle<Value> obj = |
context->Global()->Get(String::NewFromUtf8(isolate.GetIsolate(), "obj")); |
- Handle<Object>::Cast(obj)->SetHiddenValue( |
- String::NewFromUtf8(isolate.GetIsolate(), "foo"), Null()); |
+ Handle<Object>::Cast(obj) |
+ ->SetHiddenValue(String::NewFromUtf8(isolate.GetIsolate(), "foo"), |
+ Null(isolate.GetIsolate())); |
CompileRun(""); // trigger delivery |
CHECK(CompileRun("records")->IsNull()); |
} |