Skip to content

Commit

Permalink
Save the register value in a local variable for ease of debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Jun 15, 2017
1 parent 988e2ce commit 52443c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vm.c
Expand Up @@ -1185,7 +1185,9 @@ mrb_vm_exec(mrb_state *mrb, struct RProc *proc, mrb_code *pc)


CASE(OP_RAISE) { CASE(OP_RAISE) {
/* A raise(R(A)) */ /* A raise(R(A)) */
mrb_exc_set(mrb, regs[GETARG_A(i)]); int a = GETARG_A(i);

mrb_exc_set(mrb, regs[a]);
goto L_RAISE; goto L_RAISE;
} }


Expand Down

0 comments on commit 52443c8

Please sign in to comment.