Index: test/cctest/test-accessors.cc |
diff --git a/test/cctest/test-accessors.cc b/test/cctest/test-accessors.cc |
index 3f3589c295abdcded48ecbb974ec436e15d81de1..9007f1482d345afa9a4f081d0d3c0ffde94f9d27 100644 |
--- a/test/cctest/test-accessors.cc |
+++ b/test/cctest/test-accessors.cc |
@@ -354,7 +354,8 @@ static void EmptyGetter(Local<String> name, |
THREADED_TEST(EmptyResult) { |
LocalContext context; |
- v8::HandleScope scope(context->GetIsolate()); |
+ v8::Isolate* isolate = context->GetIsolate(); |
+ v8::HandleScope scope(isolate); |
v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); |
obj->SetAccessor(v8_str("xxx"), EmptyGetter, NULL, v8::String::New("data")); |
v8::Handle<v8::Object> inst = obj->NewInstance(); |
@@ -362,7 +363,7 @@ THREADED_TEST(EmptyResult) { |
Local<Script> scr = v8::Script::Compile(v8::String::New("obj.xxx")); |
for (int i = 0; i < 10; i++) { |
Local<Value> result = scr->Run(); |
- CHECK(result == v8::Undefined()); |
+ CHECK(result == v8::Undefined(isolate)); |
} |
} |
@@ -370,7 +371,8 @@ THREADED_TEST(EmptyResult) { |
THREADED_TEST(NoReuseRegress) { |
// Check that the IC generated for the one test doesn't get reused |
// for the other. |
- v8::HandleScope scope(CcTest::isolate()); |
+ v8::Isolate* isolate = CcTest::isolate(); |
+ v8::HandleScope scope(isolate); |
{ |
v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); |
obj->SetAccessor(v8_str("xxx"), EmptyGetter, NULL, v8::String::New("data")); |
@@ -380,7 +382,7 @@ THREADED_TEST(NoReuseRegress) { |
Local<Script> scr = v8::Script::Compile(v8::String::New("obj.xxx")); |
for (int i = 0; i < 2; i++) { |
Local<Value> result = scr->Run(); |
- CHECK(result == v8::Undefined()); |
+ CHECK(result == v8::Undefined(isolate)); |
} |
} |
{ |