| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 061786fb0426d13edbe4b2ef1481d498760638fd..7ad64407a4d55a95691aaf93679091110d8d5e66 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -4970,11 +4970,14 @@ bool ParserApi::Parse(CompilationInfo* info) {
|
| FunctionLiteral* result = NULL;
|
| Handle<Script> script = info->script();
|
| if (info->is_lazy()) {
|
| - Parser parser(script, true, NULL, NULL);
|
| + bool allow_natives_syntax =
|
| + FLAG_allow_natives_syntax ||
|
| + info->is_native();
|
| + Parser parser(script, allow_natives_syntax, NULL, NULL);
|
| result = parser.ParseLazy(info);
|
| } else {
|
| bool allow_natives_syntax =
|
| - info->allows_natives_syntax() || FLAG_allow_natives_syntax;
|
| + info->is_native() || FLAG_allow_natives_syntax;
|
| ScriptDataImpl* pre_data = info->pre_parse_data();
|
| Parser parser(script, allow_natives_syntax, info->extension(), pre_data);
|
| if (pre_data != NULL && pre_data->has_error()) {
|
|
|