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

Unified Diff: src/preparser.h

Issue 1226103002: [es6] Handle conflicts for sloppy let (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index aa866647d1eb99ad426b5f7e9dbd116a531edd6f..2f1e740d1935d02c1a3d7740ec9c4b76e6c185e2 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -3765,6 +3765,8 @@ ParserBase<Traits>::ParseArrowFunctionLiteral(
if (is_strict(language_mode())) {
CheckStrictOctalLiteral(formal_parameters.scope->start_position(),
scanner()->location().end_pos, CHECK_OK);
+ }
+ if (is_strict(language_mode()) || allow_harmony_sloppy()) {
Dan Ehrenberg 2015/07/08 23:42:13 A tangent, but it looks like CheckConflictingVarDe
rossberg 2015/07/10 12:13:17 No, the preparser doesn't maintain scopes. This is
arv (Not doing code reviews) 2015/07/10 13:00:48 This is not entirely true. We do set up the scopes
this->CheckConflictingVarDeclarations(formal_parameters.scope, CHECK_OK);
}
}

Powered by Google App Engine
This is Rietveld 408576698