Index: test/cctest/test-object-observe.cc |
diff --git a/test/cctest/test-object-observe.cc b/test/cctest/test-object-observe.cc |
index 9eb6f3c8590630e383cea931765f123dbdc6210d..0dd02650b018b4ebaf419e2e29365de2ff557adf 100644 |
--- a/test/cctest/test-object-observe.cc |
+++ b/test/cctest/test-object-observe.cc |
@@ -418,7 +418,8 @@ TEST(ObservationWeakMap) { |
"Object.observe(obj, function(){});" |
"Object.getNotifier(obj);" |
"obj = null;"); |
- i::Handle<i::JSObject> observation_state = FACTORY->observation_state(); |
+ i::Handle<i::JSObject> observation_state = |
+ i::Isolate::Current()->factory()->observation_state(); |
i::Handle<i::JSWeakMap> observerInfoMap = |
i::Handle<i::JSWeakMap>::cast( |
i::GetProperty(observation_state, "observerInfoMap")); |