Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 75c5b8e2a330f8306bd220e561d70c5b2ed4d534..f3c05804c6435400e5695b061e4bbadbe2c1fd23 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -23035,3 +23035,21 @@ TEST(GetHiddenPropertyTableAfterAccessCheck) { |
obj->SetHiddenValue(v8_str("hidden key 2"), v8_str("hidden value 2")); |
} |
+ |
+ |
+TEST(Regress411793) { |
+ v8::Isolate* isolate = CcTest::isolate(); |
+ v8::HandleScope handle_scope(isolate); |
+ v8::Handle<v8::ObjectTemplate> object_template = |
+ v8::ObjectTemplate::New(isolate); |
+ object_template->SetAccessCheckCallbacks(NamedAccessCounter, |
+ IndexedAccessCounter); |
+ |
+ v8::Handle<Context> context = Context::New(isolate); |
+ v8::Context::Scope context_scope(context); |
+ |
+ context->Global()->Set(v8_str("o"), object_template->NewInstance()); |
+ CompileRun( |
+ "Object.defineProperty(o, 'key', " |
+ " { get: function() {}, set: function() {} });"); |
+} |