Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 7ba9e639ae26b994505959249561dcaa81575a0a..cb1a7a29dd287c220a8b3a9e0c70e3d85a50f768 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -17469,6 +17469,16 @@ THREADED_TEST(Regress137496) { |
} |
+THREADED_TEST(Regress149912) { |
+ v8::HandleScope scope; |
+ LocalContext context; |
+ Handle<FunctionTemplate> templ = FunctionTemplate::New(); |
+ AddInterceptor(templ, EmptyInterceptorGetter, EmptyInterceptorSetter); |
+ context->Global()->Set(v8_str("Bug"), templ->GetFunction()); |
+ CompileRun("Number.prototype.__proto__ = new Bug; var x = 0; x.foo();"); |
+} |
+ |
+ |
#ifndef WIN32 |
class ThreadInterruptTest { |
public: |