diff --git a/src/compiler.cc b/src/compiler.cc index 75060b0a7b..6be922ceed 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -765,7 +765,9 @@ void CodeGenSelector::VisitDebuggerStatement(DebuggerStatement* stmt) { void CodeGenSelector::VisitFunctionLiteral(FunctionLiteral* expr) { - // FunctionLiteral is supported. + if (!expr->AllowsLazyCompilation()) { + BAILOUT("FunctionLiteral does not allow lazy compilation"); + } }