summaryrefslogtreecommitdiff
path: root/js/src/frontend/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/frontend/Parser.cpp')
-rw-r--r--js/src/frontend/Parser.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp
index 2d2f17fd1b..cf9f1e27c9 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(&ltok))
return null();