Index: test/cctest/test-api.cc |
=================================================================== |
--- test/cctest/test-api.cc (revision 5856) |
+++ test/cctest/test-api.cc (working copy) |
@@ -6324,7 +6324,7 @@ |
int expected) { |
v8::HandleScope scope; |
v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); |
- templ->SetNamedPropertyHandler(getter); |
+ templ->SetNamedPropertyHandler(getter, 0, 0, 0, 0, v8_str("data")); |
LocalContext context; |
context->Global()->Set(v8_str("o"), templ->NewInstance()); |
v8::Handle<Value> value = CompileRun(source); |
@@ -6335,7 +6335,8 @@ |
static v8::Handle<Value> InterceptorLoadICGetter(Local<String> name, |
const AccessorInfo& info) { |
ApiTestFuzzer::Fuzz(); |
- CHECK(v8_str("x")->Equals(name)); |
+ CHECK_EQ(v8_str("data"), info.Data()); |
+ CHECK_EQ(v8_str("x"), name); |
return v8::Integer::New(42); |
} |
@@ -6733,7 +6734,8 @@ |
v8::HandleScope scope; |
v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); |
templ->SetNamedPropertyHandler(InterceptorLoadICGetter, |
- InterceptorStoreICSetter); |
+ InterceptorStoreICSetter, |
+ 0, 0, 0, v8_str("data")); |
LocalContext context; |
context->Global()->Set(v8_str("o"), templ->NewInstance()); |
v8::Handle<Value> value = CompileRun( |