Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index b588950309a682f94d61d5ae6481c61069396c9f..02b84d1ada27cac4a1e4dfdbd6e0fe0cef65120e 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -209,8 +209,7 @@ class BytecodeGenerator::ControlScopeForTopLevel final |
generator()->builder()->Return(); |
return true; |
case CMD_RETHROW: |
- // TODO(mstarzinger): Should be a ReThrow instead. |
- generator()->builder()->Throw(); |
+ generator()->builder()->ReThrow(); |
return true; |
} |
return false; |
@@ -291,7 +290,7 @@ class BytecodeGenerator::ControlScopeForTryCatch final |
public: |
ControlScopeForTryCatch(BytecodeGenerator* generator, |
TryCatchBuilder* try_catch_builder) |
- : ControlScope(generator), try_catch_builder_(try_catch_builder) {} |
+ : ControlScope(generator) {} |
protected: |
bool Execute(Command command, Statement* statement) override { |
@@ -301,16 +300,11 @@ class BytecodeGenerator::ControlScopeForTryCatch final |
case CMD_RETURN: |
break; |
case CMD_RETHROW: |
- // TODO(mstarzinger): Test and implement this! |
- USE(try_catch_builder_); |
- UNIMPLEMENTED(); |
+ generator()->builder()->ReThrow(); |
return true; |
} |
return false; |
} |
- |
- private: |
- TryCatchBuilder* try_catch_builder_; |
}; |