| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index aabfc7302963912cbd71f341c9438a8e849a8370..8226a0e5d7f0e92dfe4775a327fee2776b16a55e 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -2243,6 +2243,7 @@ Handle<JSFunction> Factory::CreateApiFunction(
|
| Handle<Code> code = isolate()->builtins()->HandleApiCall();
|
| Handle<Code> construct_stub = isolate()->builtins()->JSConstructStubApi();
|
|
|
| + obj->set_instantiated(true);
|
| Handle<JSFunction> result;
|
| if (obj->remove_prototype()) {
|
| result = NewFunctionWithoutPrototype(empty_string(), code);
|
|
|