Fixed bug in using error variable within catch block.

This commit is contained in:
Stephen Chung
2021-09-02 22:17:45 +08:00
parent 73c0ba4ec5
commit 457be797a2
3 changed files with 54 additions and 0 deletions

View File

@@ -2915,6 +2915,7 @@ fn parse_try_catch(
}
let name = state.get_identifier(name);
state.stack.push((name.clone(), AccessMode::ReadWrite));
Some(Ident { name, pos })
} else {
None