Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 3be500814533e45ee0b6273f45577438fa35019f..66d5cc838f33a4b061921fd4b2ced714e27e0fcc 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -9522,6 +9522,17 @@ THREADED_TEST(SetPrototypeThrows) { |
} |
+THREADED_TEST(FunctionRemovePrototype) { |
+ LocalContext context; |
+ v8::HandleScope handle_scope(context->GetIsolate()); |
+ |
+ Local<v8::FunctionTemplate> t1 = v8::FunctionTemplate::New(); |
+ t1->RemovePrototype(); |
+ context->Global()->Set(v8_str("fun"), t1->GetFunction()); |
+ CHECK(!CompileRun("'prototype' in fun")->BooleanValue()); |
Michael Starzinger
2013/08/15 08:49:24
Can we add an additional check that "fun" actually
|
+} |
+ |
+ |
THREADED_TEST(GetterSetterExceptions) { |
LocalContext context; |
v8::HandleScope handle_scope(context->GetIsolate()); |