| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index fb94a1a60b5ad3715590a59685ed60705fb41344..3bf2cf911cf51a402d80ea1991a374bed1037cd9 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -5196,13 +5196,16 @@ bool ParserApi::Parse(CompilationInfo* info) {
|
| Handle<Script> script = info->script();
|
| bool harmony_scoping = !info->is_native() && FLAG_harmony_scoping;
|
| 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);
|
| parser.SetHarmonyScoping(harmony_scoping);
|
| result = parser.ParseLazy(info);
|
| } else {
|
| // Whether we allow %identifier(..) syntax.
|
| 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,
|
|
|