| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index 0b00f819abe1f1bcc0543c7f823b8981ee3a2cfb..219fe2de5a0d2abcca6e416027bdf9d63d6c6a1a 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -2804,6 +2804,12 @@ ParserBase<Traits>::ParseLeftHandSideExpression(bool* ok) {
|
| }
|
|
|
| case Token::LPAREN: {
|
| + if (is_strong(language_mode()) && this->IsIdentifier(result) &&
|
| + this->IsEval(this->AsIdentifier(result))) {
|
| + ReportMessage("strong_direct_eval");
|
| + *ok = false;
|
| + return this->EmptyExpression();
|
| + }
|
| int pos;
|
| if (scanner()->current_token() == Token::IDENTIFIER) {
|
| // For call of an identifier we want to report position of
|
|
|