Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 2136fd087dad75a7abb77491e837cb3d6103204a..091e2019050bd6927c6bb344bb0f0952c7d28888 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1237,7 +1237,11 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
Handle<JSFunction> boolean_fun = |
InstallFunction(global, "Boolean", JS_VALUE_TYPE, JSValue::kSize, |
isolate->initial_object_prototype(), |
- Builtins::kIllegal); |
+ Builtins::kBooleanConstructor); |
+ boolean_fun->shared()->DontAdaptArguments(); |
+ boolean_fun->shared()->set_construct_stub( |
+ *isolate->builtins()->BooleanConstructor_ConstructStub()); |
+ boolean_fun->shared()->set_length(1); |
InstallWithIntrinsicDefaultProto(isolate, boolean_fun, |
Context::BOOLEAN_FUNCTION_INDEX); |
} |