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: Created 3 years, 11 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 db2edf7935ec1bd788b3c45aacd1a616b7071447..9cadb62b0758c2c6de7daf037d7ebf85b427fd1f 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -1300,6 +1300,14 @@ class PreParser : public ParserBase<PreParser> {
return stmt;
}
+ V8_INLINE PreParserStatement InitializeForAwaitOfStatement(
+ PreParserStatement stmt, PreParserExpression each,
+ PreParserExpression iterable, PreParserStatement body, bool finalize,
+ 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