| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 361960dc22f6d7c7dbf432022bf3cfe016af089b..a911764b4782de94ac5ee29a76a936e890ff3b4c 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -121,7 +121,7 @@ char* Bootstrapper::AllocateAutoDeletedArray(int bytes) {
|
| void Bootstrapper::TearDown() {
|
| if (delete_these_non_arrays_on_tear_down_ != NULL) {
|
| int len = delete_these_non_arrays_on_tear_down_->length();
|
| - DCHECK(len < 27); // Don't use this mechanism for unbounded allocations.
|
| + DCHECK(len < 25); // Don't use this mechanism for unbounded allocations.
|
| for (int i = 0; i < len; i++) {
|
| delete delete_these_non_arrays_on_tear_down_->at(i);
|
| delete_these_non_arrays_on_tear_down_->at(i) = NULL;
|
| @@ -1600,7 +1600,6 @@ void Genesis::InstallNativeFunctions() {
|
| native_object_notifier_perform_change);
|
|
|
| INSTALL_NATIVE(Symbol, "symbolIterator", iterator_symbol);
|
| - INSTALL_NATIVE(Symbol, "symbolUnscopables", unscopables_symbol);
|
|
|
| INSTALL_NATIVE_MATH(abs)
|
| INSTALL_NATIVE_MATH(acos)
|
| @@ -1631,6 +1630,10 @@ void Genesis::InstallExperimentalNativeFunctions() {
|
| INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap);
|
| INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate);
|
| }
|
| +
|
| + if (FLAG_harmony_unscopables) {
|
| + INSTALL_NATIVE(Symbol, "symbolUnscopables", unscopables_symbol);
|
| + }
|
| }
|
|
|
| #undef INSTALL_NATIVE
|
| @@ -2065,8 +2068,11 @@ bool Genesis::InstallExperimentalNatives() {
|
| i++) {
|
| INSTALL_EXPERIMENTAL_NATIVE(i, proxies, "proxy.js")
|
| INSTALL_EXPERIMENTAL_NATIVE(i, generators, "generator.js")
|
| + INSTALL_EXPERIMENTAL_NATIVE(i, iteration, "array-iterator.js")
|
| + INSTALL_EXPERIMENTAL_NATIVE(i, iteration, "string-iterator.js")
|
| INSTALL_EXPERIMENTAL_NATIVE(i, strings, "harmony-string.js")
|
| INSTALL_EXPERIMENTAL_NATIVE(i, arrays, "harmony-array.js")
|
| + INSTALL_EXPERIMENTAL_NATIVE(i, unscopables, "unscopables.js")
|
| }
|
|
|
| InstallExperimentalNativeFunctions();
|
|
|