Chromium Code Reviews| Index: src/parsing/parser-base.h |
| diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
| index 6058d25c6f887069b59e777fb3815366e9f0c79b..bd9e77c4a35a0711dd2850bbf0535943e7d45eb4 100644 |
| --- a/src/parsing/parser-base.h |
| +++ b/src/parsing/parser-base.h |
| @@ -1909,6 +1909,13 @@ typename ParserBase<Traits>::ExpressionT ParserBase<Traits>::ParsePropertyName( |
| scanner()->IsGetOrSet(is_get, is_set); |
| if (this->IsAwait(*name)) { |
|
adamk
2016/08/05 22:29:29
I actually don't know why we handle this here inst
lpy
2016/08/09 01:01:47
Done.
|
| *is_await = true; |
| + } else if (this->IsEval(*name)) { |
|
adamk
2016/08/05 22:29:29
What about "arguments"?
Is there a reason check h
lpy
2016/08/09 01:01:47
My understanding is when parsing the property name
|
| + classifier->RecordStrictModeFormalParameterError( |
|
adamk
2016/08/05 22:29:29
Not clear on why this is an error in sloppy mode.
|
| + scanner()->location(), MessageTemplate::kStrictEvalArguments); |
| + if (is_strict(language_mode())) { |
| + classifier->RecordBindingPatternError( |
| + scanner()->location(), MessageTemplate::kStrictEvalArguments); |
| + } |
| } |
| break; |
| } |