summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-01-03 18:22:23 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-01-03 18:22:23 +0100
commit85bbd3555da0b00b4ac4806fbc838b9028cc835d (patch)
tree49deeea48fcaf7287b53a706eacc1323db43819a /js
parent34b4eb6288ffb0f4860e6a09f114f7b0c02e4738 (diff)
downloadpalemoon-gre-85bbd3555da0b00b4ac4806fbc838b9028cc835d.tar.gz
Add Symbol.species
Issue #1565
Diffstat (limited to 'js')
-rw-r--r--js/src/jsapi.h1
-rw-r--r--js/src/vm/CommonPropertyNames.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h
index 6309d408e..b06900270 100644
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -4211,6 +4211,7 @@ GetSymbolDescription(HandleSymbol symbol);
/* Well-known symbols. */
#define JS_FOR_EACH_WELL_KNOWN_SYMBOL(macro) \
macro(iterator) \
+ macro(species) \
macro(unscopables)
enum class SymbolCode : uint32_t {
diff --git a/js/src/vm/CommonPropertyNames.h b/js/src/vm/CommonPropertyNames.h
index 87b9bc6a6..93b76d47d 100644
--- a/js/src/vm/CommonPropertyNames.h
+++ b/js/src/vm/CommonPropertyNames.h
@@ -239,6 +239,7 @@
/* Well-known atom names must be continuous and ordered, matching \
* enum JS::SymbolCode in jsapi.h. */ \
macro(iterator, iterator, "iterator") \
+ macro(species, species, "species") \
macro(unscopables, unscopables, "unscopables") \
/* Same goes for the descriptions of the well-known symbols. */ \
macro(Symbol_create, Symbol_create, "Symbol.create") \
@@ -246,6 +247,7 @@
macro(Symbol_isConcatSpreadable, Symbol_isConcatSpreadable, "Symbol.isConcatSpreadable") \
macro(Symbol_isRegExp, Symbol_isRegExp, "Symbol.isRegExp") \
macro(Symbol_iterator, Symbol_iterator, "Symbol.iterator") \
+ macro(Symbol_species, Symbol_species, "Symbol.species") \
macro(Symbol_toPrimitive, Symbol_toPrimitive, "Symbol.toPrimitive") \
macro(Symbol_unscopables, Symbol_unscopables, "Symbol.unscopables") \