Chromium Code Reviews| 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); |
| } |
| } |