Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 6254eaa708a7dff85c1c2447821b702688939ab4..a33eb949f61fe9cb3645098e3c8a675f0fad9084 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -7228,6 +7228,18 @@ THREADED_TEST(NullIndexedInterceptor) { |
} |
+THREADED_TEST(NamedPropertyHandlerGetterAttributes) { |
+ v8::HandleScope scope; |
+ v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); |
+ templ->InstanceTemplate()->SetNamedPropertyHandler(InterceptorLoadXICGetter); |
+ LocalContext env; |
+ env->Global()->Set(v8_str("obj"), |
+ templ->GetFunction()->NewInstance()); |
+ ExpectTrue("obj.x === 42"); |
+ ExpectTrue("!obj.propertyIsEnumerable('x')"); |
+} |
+ |
+ |
static v8::Handle<Value> ParentGetter(Local<String> name, |
const AccessorInfo& info) { |
ApiTestFuzzer::Fuzz(); |