Index: test/cctest/test-accessors.cc |
diff --git a/test/cctest/test-accessors.cc b/test/cctest/test-accessors.cc |
index 72f598b4bdb1beb68d75c0e57a7a8f7007594e62..0ff747c57dae1d0a77039f5a36adbadb5ecfcb09 100644 |
--- a/test/cctest/test-accessors.cc |
+++ b/test/cctest/test-accessors.cc |
@@ -225,7 +225,8 @@ THREADED_TEST(HandleScopePop) { |
LocalContext context; |
v8::Handle<v8::Object> inst = obj->NewInstance(); |
context->Global()->Set(v8::String::New("obj"), inst); |
- int count_before = i::HandleScope::NumberOfHandles(); |
+ i::Isolate* isolate = i::Isolate::Current(); |
+ int count_before = i::HandleScope::NumberOfHandles(isolate); |
{ |
v8::HandleScope scope; |
CompileRun( |
@@ -234,7 +235,7 @@ THREADED_TEST(HandleScopePop) { |
" obj.many;" |
"}"); |
} |
- int count_after = i::HandleScope::NumberOfHandles(); |
+ int count_after = i::HandleScope::NumberOfHandles(isolate); |
CHECK_EQ(count_before, count_after); |
} |