Skip to content

Commit

Permalink
Shell: Make set_is_syntax_error() also copy the error location
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpfard authored and awesomekling committed May 1, 2021
1 parent f1d49d3 commit 323a408
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Userland/Shell/AST.h
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,7 @@ class SyntaxError final : public Node {
}
virtual void set_is_syntax_error(const SyntaxError& error) override
{
m_position = error.position();
m_is_cleared = error.m_is_cleared;
m_is_continuable = error.m_is_continuable;
m_syntax_error_text = error.error_text();
Expand Down

0 comments on commit 323a408

Please sign in to comment.