Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index b051bd9bbb173e4070f6932d525e789f8ae96b97..7526f2a99c5a16ba63551d4d9a5af0cd35b2b0e1 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -955,7 +955,11 @@ void BytecodeGenerator::VisitAssignment(Assignment* expr) { |
void BytecodeGenerator::VisitYield(Yield* expr) { UNIMPLEMENTED(); } |
-void BytecodeGenerator::VisitThrow(Throw* expr) { UNIMPLEMENTED(); } |
+void BytecodeGenerator::VisitThrow(Throw* expr) { |
+ TemporaryRegisterScope temporary_register_scope(builder()); |
+ Visit(expr->exception()); |
+ builder()->Throw(); |
+} |
void BytecodeGenerator::VisitPropertyLoad(Register obj, Property* expr) { |