Skip to content

Commit

Permalink
TerminativeThrowSignal::getAddress() implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Sep 10, 2024
1 parent 8d3cd3a commit 5858eac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ast/statement/ThrowStatement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
#include <ast/statement/ThrowStatement.hpp>

DynamicObject ThrowStatement::visit(SymbolTable& symbols) {
throw TerminativeThrowSignal(this->expression->visit(symbols));
throw TerminativeThrowSignal(
std::move(this->address),
this->expression->visit(symbols)
);
}

0 comments on commit 5858eac

Please sign in to comment.