Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Unified Diff: src/parsing/preparser.h

Issue 2637403008: [async-iteration] add support for for-await-of loops in Async Functions (Closed)
Patch Set: ...and uncomment the previously failing tests... Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 9291578dbce579f580b9b1004ac7b56d4856a125..81f886d01473137ccb60536a1191742c7a049c12 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -1317,6 +1317,14 @@ class PreParser : public ParserBase<PreParser> {
return stmt;
}
+ V8_INLINE PreParserStatement InitializeForOfStatement(
+ PreParserStatement stmt, PreParserExpression each,
+ PreParserExpression iterable, PreParserStatement body, bool finalize,
+ IteratorType type, int next_result_pos = kNoSourcePosition) {
+ MarkExpressionAsAssigned(each);
+ return stmt;
+ }
+
V8_INLINE PreParserStatement RewriteForVarInLegacy(const ForInfo& for_info) {
return PreParserStatement::Null();
}

Powered by Google App Engine
This is Rietveld 408576698