Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 3d30cced7ac0135095aa160a67df3bae61b26e31..2ad2eaff83b1bf4886dfa6e9f082d7a152f63a4c 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1162,6 +1162,9 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
// Set the length for the function to satisfy ECMA-262. |
has_instance->shared()->set_length(1); |
+ // Install in the native context |
+ native_context()->set_ordinary_has_instance(*has_instance); |
+ |
// Install the "constructor" property on the %FunctionPrototype%. |
JSObject::AddProperty(prototype, factory->constructor_string(), |
function_fun, DONT_ENUM); |
@@ -2357,6 +2360,7 @@ EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) |
+EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) |
void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, |
const char* name, Handle<Symbol> value) { |
@@ -2999,6 +3003,7 @@ bool Genesis::InstallExperimentalNatives() { |
static const char* harmony_do_expressions_natives[] = {nullptr}; |
static const char* harmony_regexp_subclass_natives[] = {nullptr}; |
static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; |
+ static const char* harmony_instanceof_natives[] = {nullptr}; |
static const char* harmony_regexp_property_natives[] = {nullptr}; |
static const char* harmony_function_name_natives[] = {nullptr}; |
static const char* harmony_function_sent_natives[] = {nullptr}; |