Index: test/cctest/test-object-observe.cc |
diff --git a/test/cctest/test-object-observe.cc b/test/cctest/test-object-observe.cc |
index b129ff3af4ceb2e2fa4f78b0e60ce7f3765180aa..76d05db0912094b83f9279504764eb813ad9097e 100644 |
--- a/test/cctest/test-object-observe.cc |
+++ b/test/cctest/test-object-observe.cc |
@@ -429,8 +429,9 @@ TEST(ObservationWeakMap) { |
"Object.observe(obj, function(){});" |
"Object.getNotifier(obj);" |
"obj = null;"); |
+ i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate.GetIsolate()); |
i::Handle<i::JSObject> observation_state = |
- i::Isolate::Current()->factory()->observation_state(); |
+ i_isolate->factory()->observation_state(); |
i::Handle<i::JSWeakMap> callbackInfoMap = |
i::Handle<i::JSWeakMap>::cast( |
i::GetProperty(observation_state, "callbackInfoMap")); |