Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index d0eec88295a89a4f543e64a5111339d2fe10a979..ed887e7db3ef79e788abedfd3ef6e4d819852801 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1101,6 +1101,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
InstallFunction(global, "Function", JS_FUNCTION_TYPE, JSFunction::kSize, |
empty_function, Builtins::kIllegal); |
function_function->initial_map()->set_is_callable(); |
+ function_function->initial_map()->set_is_constructor(true); |
{ // --- A r r a y --- |
Handle<JSFunction> array_function = |
@@ -1913,6 +1914,7 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate, |
JSFunction::kSize, generator_function_prototype, |
Builtins::kIllegal, kUseStrictFunctionMap); |
generator_function_function->initial_map()->set_is_callable(); |
+ generator_function_function->initial_map()->set_is_constructor(true); |
} |
{ // -- S e t I t e r a t o r |