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

Unified Diff: src/parser.cc

Issue 1361403003: Implement ES6 completion semantics (--harmony-completion). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « src/flag-definitions.h ('k') | src/rewriter.cc » ('j') | src/rewriter.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index e3ce0f0172a4c340c0a904d30c6511b7b9bb476a..83492a02a5ff86c83fb4d4cf01530dfe4e4a5dc1 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -3327,7 +3327,7 @@ Statement* Parser::DesugarLexicalBindingsInForStatement(
Scope* inner_scope, bool is_const, ZoneList<const AstRawString*>* names,
ForStatement* loop, Statement* init, Expression* cond, Statement* next,
Statement* body, bool* ok) {
- // ES6 13.6.3.4 specifies that on each loop iteration the let variables are
+ // ES6 13.7.4.8 specifies that on each loop iteration the let variables are
// copied into a new environment. After copying, the "next" statement of the
// loop is executed to update the loop variables. The loop condition is
// checked and the loop body is executed.
@@ -3364,7 +3364,7 @@ Statement* Parser::DesugarLexicalBindingsInForStatement(
// break outer;
// }
// }
- // if (flag == 1) {
+ // if (flag == 1) { // Body used break.
// break;
// }
// }
« no previous file with comments | « src/flag-definitions.h ('k') | src/rewriter.cc » ('j') | src/rewriter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698