Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index f8d1b3de6b550ce1b568fa203d0dca2437abb2f2..cc03907a68547a51e42edbde7b1d2eda9624060c 100755 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -618,6 +618,7 @@ bool Compiler::CompileLazy(CompilationInfo* info) { |
RecordFunctionCompilation(Logger::LAZY_COMPILE_TAG, info, shared); |
if (info->IsOptimizing()) { |
+ ASSERT(shared->scope_info() != SerializedScopeInfo::Empty()); |
function->ReplaceCode(*code); |
} else { |
// Update the shared function info with the compiled code and the |