Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index e20baf0ec8e6975961807fb487cc88df78825f90..7747520a5c700a85ce1ef4c889cddc08e6524ec5 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1883,6 +1883,10 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
SimpleInstallFunction(prototype, "catch", Builtins::kIllegal, 1, true, |
DONT_ENUM); |
+ SimpleInstallGetter(promise_fun, factory->symbol_species_string(), |
+ factory->species_symbol(), |
+ Builtins::kPromiseSpeciesGetter, true); |
+ |
Handle<Map> prototype_map(prototype->map()); |
Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate); |
@@ -2070,8 +2074,7 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, |
{ |
// RegExp getters and setters. |
- SimpleInstallGetter(regexp_fun, |
- factory->InternalizeUtf8String("[Symbol.species]"), |
+ SimpleInstallGetter(regexp_fun, factory->symbol_species_string(), |
factory->species_symbol(), |
Builtins::kRegExpPrototypeSpeciesGetter, true); |