Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 648931f8cbe09cd2058a9da31506010f4eba2141..20146515847b09838249e53296803549a98570b2 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1121,6 +1121,9 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
Builtins::kObjectPreventExtensions, 1, false); |
SimpleInstallFunction(object_function, "seal", Builtins::kObjectSeal, 1, |
false); |
+ |
+ SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", |
+ Builtins::kObjectHasOwnProperty, 1, false); |
Benedikt Meurer
2016/02/29 08:46:42
Please install the function on the native context
|
} |
Handle<JSObject> global(native_context()->global_object()); |