Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index b5cb2263b555539ac85f6134c075603bbeecb6e3..7714a560f3767cebe1e202a23e95ff0beac2be57 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -11101,6 +11101,7 @@ THREADED_TEST(FunctionRemovePrototype) { |
Local<v8::FunctionTemplate> t1 = v8::FunctionTemplate::New(isolate); |
t1->RemovePrototype(); |
Local<v8::Function> fun = t1->GetFunction(context.local()).ToLocalChecked(); |
+ CHECK(!fun->IsConstructor()); |
CHECK(context->Global()->Set(context.local(), v8_str("fun"), fun).FromJust()); |
CHECK(!CompileRun("'prototype' in fun") |
->BooleanValue(context.local()) |