| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 9f8e1eecc2fb59b134a244c69877c378aa6b786e..55c564ce57c3d2ae79f2e463945eaa4bdcd38032 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -1353,8 +1353,11 @@ PreParser::Expression PreParser::ParseFunctionLiteral(bool* ok) {
|
| PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) {
|
| // CallRuntime ::
|
| // '%' Identifier Arguments
|
| -
|
| Expect(i::Token::MOD, CHECK_OK);
|
| + if (!allow_natives_syntax_) {
|
| + *ok = false;
|
| + return Expression::Default();
|
| + }
|
| ParseIdentifier(CHECK_OK);
|
| ParseArguments(ok);
|
|
|
|
|