Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 7ee75b2cab0d01cc731308ae8f002333d35d7050..818b354428fc69a09b858b442bc96c0299ab0bfb 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1851,6 +1851,15 @@ EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring) |
+void Genesis::InitializeGlobal_harmony_tolength() { |
+ Handle<JSObject> builtins(native_context()->builtins()); |
+ Handle<Object> flag(factory()->ToBoolean(FLAG_harmony_tolength)); |
+ Runtime::SetObjectProperty(isolate(), builtins, |
+ factory()->harmony_tolength_string(), flag, |
+ STRICT).Assert(); |
+} |
+ |
+ |
void Genesis::InitializeGlobal_harmony_reflect() { |
if (!FLAG_harmony_reflect) return; |
@@ -2531,6 +2540,7 @@ bool Genesis::InstallExperimentalNatives() { |
"native harmony-concat-spreadable.js", nullptr}; |
static const char* harmony_simd_natives[] = {"native harmony-simd.js", |
nullptr}; |
+ static const char* harmony_tolength_natives[] = {nullptr}; |
for (int i = ExperimentalNatives::GetDebuggerCount(); |
i < ExperimentalNatives::GetBuiltinsCount(); i++) { |