Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 8ac594c5821cb9fdbb86f61b47bdbcd9c504b26d..879f1034f3b24254891e191c633f31bf3f71c6d1 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1350,16 +1350,19 @@ void Genesis::InitializeExperimentalGlobal() { |
} |
if (FLAG_harmony_collections) { |
- { // -- S e t |
- InstallFunction(global, "Set", JS_SET_TYPE, JSSet::kSize, |
+ { // -- M a p |
+ InstallFunction(global, "Map", JS_MAP_TYPE, JSMap::kSize, |
isolate()->initial_object_prototype(), |
Builtins::kIllegal, true, true); |
} |
- { // -- M a p |
- InstallFunction(global, "Map", JS_MAP_TYPE, JSMap::kSize, |
+ { // -- S e t |
+ InstallFunction(global, "Set", JS_SET_TYPE, JSSet::kSize, |
isolate()->initial_object_prototype(), |
Builtins::kIllegal, true, true); |
} |
+ } |
+ |
+ if (FLAG_harmony_weak_collections) { |
{ // -- W e a k M a p |
InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize, |
isolate()->initial_object_prototype(), |
@@ -2050,6 +2053,7 @@ bool Genesis::InstallExperimentalNatives() { |
INSTALL_EXPERIMENTAL_NATIVE(i, symbols, "symbol.js") |
INSTALL_EXPERIMENTAL_NATIVE(i, proxies, "proxy.js") |
INSTALL_EXPERIMENTAL_NATIVE(i, collections, "collection.js") |
+ INSTALL_EXPERIMENTAL_NATIVE(i, weak_collections, "weak_collection.js") |
INSTALL_EXPERIMENTAL_NATIVE(i, promises, "promise.js") |
INSTALL_EXPERIMENTAL_NATIVE(i, generators, "generator.js") |
INSTALL_EXPERIMENTAL_NATIVE(i, iteration, "array-iterator.js") |