Skip to content

Commit

Permalink
Fix reverting this in try-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Jul 21, 2023
1 parent 0927e1d commit 7ce3e4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! test_output(1)
// (Should be 0.)
//! test_output(0)

export default function main() {
let foo = new Foo();
Expand Down
4 changes: 0 additions & 4 deletions valuescript_compiler/src/function_compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -849,10 +849,6 @@ impl FunctionCompiler {
let snap_registers = self.get_mutated_registers(try_.block.span);

for reg in snap_registers {
if !reg.is_named() {
continue;
}

let snap_reg = self.allocate_reg_fresh(&format!("snap_{}", reg.name));

self.push(Instruction::Mov(
Expand Down

0 comments on commit 7ce3e4b

Please sign in to comment.