Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index b452c0dff289aff826a068d7267ae64e03803bcf..d511f916524d3c68803636a4e8c211014a9c57a0 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -18802,6 +18802,17 @@ THREADED_TEST(Regress2535) { |
} |
+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: |