| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index c9c2480fa2c6dbf326b1bc3314bb5d46de302cd8..efdc52121e54de835bcaed85e100597c3580a47c 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -717,7 +717,8 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(FunctionLiteral* literal,
|
| // if a function uses the special natives syntax, which is something the
|
| // parser records.
|
| bool allow_lazy = literal->AllowsLazyCompilation() &&
|
| - !LiveEditFunctionTracker::IsActive(info.isolate());
|
| + !LiveEditFunctionTracker::IsActive(info.isolate()) &&
|
| + (!info.is_native() || literal->AllowsLazyCompilationForNative());
|
|
|
| Handle<ScopeInfo> scope_info(ScopeInfo::Empty());
|
|
|
|
|