| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index 0b00f819abe1f1bcc0543c7f823b8981ee3a2cfb..f08c3c72c33b0caa67a8520d28a2ee54b1f6c8f5 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -2808,6 +2808,12 @@ ParserBase<Traits>::ParseLeftHandSideExpression(bool* ok) {
|
| if (scanner()->current_token() == Token::IDENTIFIER) {
|
| // For call of an identifier we want to report position of
|
| // the identifier as position of the call in the stack trace.
|
| + if (is_strong(language_mode()) && this->IsIdentifier(result) &&
|
| + this->IsEval(this->AsIdentifier(result))) {
|
| + ReportMessage("strong_direct_eval");
|
| + *ok = false;
|
| + return this->EmptyExpression();
|
| + }
|
| pos = position();
|
| } else {
|
| // For other kinds of calls we record position of the parenthesis as
|
|
|