| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 266f77d578f45902c68a011283258a9ccfe275c8..ce9b7c3d0db6b40fca7ed65af680a5947a1cefb2 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -5141,11 +5141,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()) {
|
|
|