Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 87cd2c50cfa9eb01258307c85391a81e1a4dc4c7..4ba0563bc87fc7a7b75923f9e789a738eea79cc9 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1212,7 +1212,6 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
isolate->initial_object_prototype(), Builtins::kIllegal); |
} |
- |
{ // -- R e g E x p |
// Builtin functions for RegExp.prototype. |
Handle<JSFunction> regexp_fun = |
@@ -2038,7 +2037,6 @@ void Bootstrapper::ExportExperimentalFromRuntime(Isolate* isolate, |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) |
-EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_function) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) |
@@ -2187,6 +2185,16 @@ void Genesis::InitializeGlobal_harmony_simd() { |
} |
+void Genesis::InitializeGlobal_harmony_proxies() { |
+ if (!FLAG_harmony_proxies) return; |
+ Handle<JSGlobalObject> global( |
+ JSGlobalObject::cast(native_context()->global_object())); |
+ Isolate* isolate = global->GetIsolate(); |
+ InstallFunction(global, "Proxy", JS_PROXY_TYPE, JSProxy::kSize, |
+ isolate->initial_object_prototype(), Builtins::kIllegal); |
+} |
+ |
+ |
Handle<JSFunction> Genesis::InstallInternalArray(Handle<JSObject> target, |
const char* name, |
ElementsKind elements_kind) { |