Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 0f3ebf5214ac891a2eebbfcb91faf8f30c8e8bb1..38a6276f4337c8ff7735df77e87f22bea296e152 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1348,7 +1348,7 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo( |
// Generate code |
Handle<ScopeInfo> scope_info; |
- if (FLAG_lazy && allow_lazy && !literal->is_parenthesized()) { |
+ if (FLAG_lazy && allow_lazy && !literal->should_eager_compile()) { |
Handle<Code> code = isolate->builtins()->CompileLazy(); |
info.SetCode(code); |
// There's no need in theory for a lazy-compiled function to have a type |