Index: test/cctest/test-object-observe.cc |
diff --git a/test/cctest/test-object-observe.cc b/test/cctest/test-object-observe.cc |
index 81edf3f40feee4dc69a5e07f0bc8ca8fb5468e3d..64d71cc5e066c18cf9e73b7517d1a60cb1ceb97f 100644 |
--- a/test/cctest/test-object-observe.cc |
+++ b/test/cctest/test-object-observe.cc |
@@ -687,7 +687,10 @@ TEST(HiddenPropertiesLeakage) { |
->Get(v8::Isolate::GetCurrent()->GetCurrentContext(), v8_str("obj")) |
.ToLocalChecked(); |
Local<Object>::Cast(obj) |
- ->SetHiddenValue(v8_str("foo"), Null(CcTest::isolate())); |
+ ->SetPrivate(v8::Isolate::GetCurrent()->GetCurrentContext(), |
+ v8::Private::New(CcTest::isolate(), v8_str("foo")), |
+ Null(CcTest::isolate())) |
+ .FromJust(); |
CompileRun(""); // trigger delivery |
CHECK(CompileRun("records")->IsNull()); |
} |