Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 43a243def444f0376c34e95f961ec5a252c80080..fa671dc66173057586d78c2f1b6faf22627b6393 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -19653,6 +19653,17 @@ THREADED_TEST(Regress2746) { |
} |
+THREADED_TEST(Regress260106) { |
+ LocalContext context; |
+ v8::HandleScope scope(context->GetIsolate()); |
+ Local<FunctionTemplate> templ = FunctionTemplate::New(DummyCallHandler); |
+ CompileRun("for (var i = 0; i < 128; i++) Object.prototype[i] = 0;"); |
+ Local<Function> function = templ->GetFunction(); |
+ CHECK(!function.IsEmpty()); |
+ CHECK(function->IsFunction()); |
+} |
+ |
+ |
#ifndef WIN32 |
class ThreadInterruptTest { |
public: |