Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index b4f03b73fd6e547c6d9ec15dbf90c4aa380dbf13..14a5b52b172492ef627c21a9323adf9b9f6656d6 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -629,6 +629,9 @@ BytecodeGenerator::BytecodeGenerator(CompilationInfo* info) |
Handle<BytecodeArray> BytecodeGenerator::MakeBytecode() { |
GenerateBytecode(); |
FinalizeBytecode(); |
+ |
+ if (HasStackOverflow()) return Handle<BytecodeArray>(); |
+ |
return builder()->ToBytecodeArray(); |
} |