Index: test/cctest/test-accessors.cc |
diff --git a/test/cctest/test-accessors.cc b/test/cctest/test-accessors.cc |
index df4937ee28367a0c288b0f419a5143ab370f9b70..4920ac2ee4520a5d2678c15085a41ffdf954b0db 100644 |
--- a/test/cctest/test-accessors.cc |
+++ b/test/cctest/test-accessors.cc |
@@ -122,18 +122,15 @@ THREADED_TEST(GlobalVariableAccess) { |
baz = 10; |
v8::HandleScope scope(CcTest::isolate()); |
v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); |
- templ->InstanceTemplate()->SetAccessor(v8_str("foo"), |
- GetIntValue, |
- SetIntValue, |
- v8::External::New(&foo)); |
- templ->InstanceTemplate()->SetAccessor(v8_str("bar"), |
- GetIntValue, |
- SetIntValue, |
- v8::External::New(&bar)); |
- templ->InstanceTemplate()->SetAccessor(v8_str("baz"), |
- GetIntValue, |
- SetIntValue, |
- v8::External::New(&baz)); |
+ templ->InstanceTemplate()->SetAccessor( |
+ v8_str("foo"), GetIntValue, SetIntValue, |
+ v8::External::New(CcTest::isolate(), &foo)); |
+ templ->InstanceTemplate()->SetAccessor( |
+ v8_str("bar"), GetIntValue, SetIntValue, |
+ v8::External::New(CcTest::isolate(), &bar)); |
+ templ->InstanceTemplate()->SetAccessor( |
+ v8_str("baz"), GetIntValue, SetIntValue, |
+ v8::External::New(CcTest::isolate(), &baz)); |
LocalContext env(0, templ->InstanceTemplate()); |
v8_compile("foo = (++bar) + baz")->Run(); |
CHECK_EQ(bar, -3); |