Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index cf20652a58a93dbf1ce6f3acc7a13883e5914e93..4c2b2529c896df40830095b203ba2113e14b6b3e 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -431,11 +431,20 @@ void BytecodeGenerator::VisitForOfStatement(ForOfStatement* stmt) { |
void BytecodeGenerator::VisitTryCatchStatement(TryCatchStatement* stmt) { |
+ if (FLAG_ignition_fake_try_catch) { |
+ Visit(stmt->try_block()); |
+ return; |
+ } |
UNIMPLEMENTED(); |
} |
void BytecodeGenerator::VisitTryFinallyStatement(TryFinallyStatement* stmt) { |
+ if (FLAG_ignition_fake_try_catch) { |
+ Visit(stmt->try_block()); |
+ Visit(stmt->finally_block()); |
+ return; |
+ } |
UNIMPLEMENTED(); |
} |