Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 7ee75b2cab0d01cc731308ae8f002333d35d7050..0367b51f91a8401dafc038045c141689a1b58852 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1851,6 +1851,17 @@ 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<HeapObject> flag(FLAG_harmony_tolength ? heap()->true_value() |
Michael Starzinger
2015/09/16 16:21:33
nit: Use factory()->ToBoolean(FLAG_harmony_tolengt
aperez
2015/09/16 17:34:47
Acknowledged.
|
+ : heap()->false_value()); |
+ Runtime::SetObjectProperty(isolate(), builtins, |
+ factory()->harmony_tolength_string(), flag, |
+ STRICT).Assert(); |
+} |
+ |
+ |
void Genesis::InitializeGlobal_harmony_reflect() { |
if (!FLAG_harmony_reflect) return; |
@@ -2531,6 +2542,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++) { |