summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-12-04 19:57:19 -0500
committerGaming4JC <g4jc@hyperbola.info>2019-12-17 06:25:26 -0500
commita0424f44abe3dc00424828da270de6e1ccbefb13 (patch)
tree1b6138a3ddb235dbfaab52ea3f3b6a949ef15d11
parentfb61c47969162181bcf6b6a99d6a385feb8bd725 (diff)
downloaduxp-a0424f44abe3dc00424828da270de6e1ccbefb13.tar.gz
Bug 1331092 - Part 1: Add Symbol.asyncIterator.
Tag mcp-graveyard/UXP#1287
-rw-r--r--js/src/jsapi.h1
-rw-r--r--js/src/tests/ecma_6/Symbol/well-known.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h
index 4dad68e6e2..7795c5e4ca 100644
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -5088,6 +5088,7 @@ GetSymbolDescription(HandleSymbol symbol);
macro(toPrimitive) \
macro(toStringTag) \
macro(unscopables) \
+ macro(asyncIterator) \
macro(matchAll)
enum class SymbolCode : uint32_t {
diff --git a/js/src/tests/ecma_6/Symbol/well-known.js b/js/src/tests/ecma_6/Symbol/well-known.js
index 8c5de12796..095d333a00 100644
--- a/js/src/tests/ecma_6/Symbol/well-known.js
+++ b/js/src/tests/ecma_6/Symbol/well-known.js
@@ -11,7 +11,8 @@ var names = [
"hasInstance",
"split",
"toPrimitive",
- "unscopables"
+ "unscopables",
+ "asyncIterator"
];
for (var name of names) {