Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 90f1c6701b3e318edccc613e0b258b1aa9f10980..4d042ea3c66d702df788f00dcaf797b0241808eb 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1147,19 +1147,6 @@ |
Builtins::kFunctionPrototypeCall, 1, false); |
SimpleInstallFunction(prototype, factory->toString_string(), |
Builtins::kFunctionPrototypeToString, 0, false); |
- |
- // Install the @@hasInstance function. |
- Handle<JSFunction> has_instance = InstallFunction( |
- prototype, factory->has_instance_symbol(), JS_OBJECT_TYPE, |
- JSObject::kHeaderSize, MaybeHandle<JSObject>(), |
- Builtins::kFunctionHasInstance, |
- static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY)); |
- |
- // Set the expected parameters for @@hasInstance to 1; required by builtin. |
- has_instance->shared()->set_internal_formal_parameter_count(1); |
- |
- // Set the length for the function to satisfy ECMA-262. |
- has_instance->shared()->set_length(1); |
// Install the "constructor" property on the %FunctionPrototype%. |
JSObject::AddProperty(prototype, factory->constructor_string(), |
@@ -2528,9 +2515,8 @@ |
Handle<String> name = factory->Proxy_string(); |
Handle<Code> code(isolate->builtins()->ProxyConstructor()); |
- Handle<JSFunction> proxy_function = |
- factory->NewFunction(isolate->proxy_function_map(), |
- factory->Proxy_string(), MaybeHandle<Code>(code)); |
+ Handle<JSFunction> proxy_function = factory->NewFunction( |
+ isolate->proxy_function_map(), factory->Proxy_string(), code); |
JSFunction::SetInitialMap(proxy_function, |
Handle<Map>(native_context()->proxy_map(), isolate), |