Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index d8c17a48a6049b1217a98a4271fdfb5378654fba..ab41f8899e3cba48c71195852f6a4d93a0c1814c 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1257,6 +1257,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
JSObject::kHeaderSize, MaybeHandle<JSObject>(), |
Builtins::kFunctionPrototypeHasInstance, |
static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY)); |
+ native_context()->set_function_has_instance(*has_instance); |
// Set the expected parameters for @@hasInstance to 1; required by builtin. |
has_instance->shared()->set_internal_formal_parameter_count(1); |