diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-12-14 10:42:18 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-12-17 06:25:30 -0500 |
commit | c9bddfca7eb5ef4642bdd8f27e35b9e2f4de65c9 (patch) | |
tree | 8e542db06fb406006b670612bc05bcc2f43d5b2f /js/src/frontend/Parser.cpp | |
parent | e0eee318c6bc14d8b6f107cdb2726941881ae311 (diff) | |
download | UXP-c9bddfca7eb5ef4642bdd8f27e35b9e2f4de65c9.tar UXP-c9bddfca7eb5ef4642bdd8f27e35b9e2f4de65c9.tar.gz UXP-c9bddfca7eb5ef4642bdd8f27e35b9e2f4de65c9.tar.lz UXP-c9bddfca7eb5ef4642bdd8f27e35b9e2f4de65c9.tar.xz UXP-c9bddfca7eb5ef4642bdd8f27e35b9e2f4de65c9.zip |
Bug 1352312 - Enable Async Iteration.
Tag #1287
Diffstat (limited to 'js/src/frontend/Parser.cpp')
-rw-r--r-- | js/src/frontend/Parser.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index 2d2f17fd1..cf9f1e27c 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -3785,12 +3785,6 @@ Parser<ParseHandler>::functionStmt(uint32_t toStringStart, YieldHandling yieldHa GeneratorKind generatorKind = NotGenerator; if (tt == TOK_MUL) { -#ifdef RELEASE_OR_BETA - if (asyncKind != SyncFunction) { - error(JSMSG_ASYNC_GENERATOR); - return null(); - } -#endif generatorKind = StarGenerator; if (!tokenStream.getToken(&tt)) return null(); @@ -3859,12 +3853,6 @@ Parser<ParseHandler>::functionExpr(uint32_t toStringStart, InvokedPrediction inv return null(); if (tt == TOK_MUL) { -#ifdef RELEASE_OR_BETA - if (asyncKind != SyncFunction) { - error(JSMSG_ASYNC_GENERATOR); - return null(); - } -#endif generatorKind = StarGenerator; if (!tokenStream.getToken(&tt)) return null(); @@ -6156,7 +6144,6 @@ Parser<ParseHandler>::forStatement(YieldHandling yieldHandling) } } -#ifndef RELEASE_OR_BETA if (pc->isAsync()) { bool matched; if (!tokenStream.matchToken(&matched, TOK_AWAIT)) @@ -6167,7 +6154,6 @@ Parser<ParseHandler>::forStatement(YieldHandling yieldHandling) iterKind = IteratorKind::Async; } } -#endif MUST_MATCH_TOKEN(TOK_LP, JSMSG_PAREN_AFTER_FOR); @@ -9520,12 +9506,6 @@ Parser<ParseHandler>::propertyName(YieldHandling yieldHandling, } if (ltok == TOK_MUL) { -#ifdef RELEASE_OR_BETA - if (isAsync) { - error(JSMSG_ASYNC_GENERATOR); - return null(); - } -#endif isGenerator = true; if (!tokenStream.getToken(<ok)) return null(); |