diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-06-15 14:52:58 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-06-15 14:52:58 +0900 |
| commit | 52443c80e23764956c253a43efaf1762262336a5 (patch) | |
| tree | 718d17d71981f93a2b3da8d224ec9c15d8f27a77 | |
| parent | 988e2ced0380e6783db854173d004d5ac64548ac (diff) | |
| download | mruby-52443c80e23764956c253a43efaf1762262336a5.tar.gz mruby-52443c80e23764956c253a43efaf1762262336a5.zip | |
Save the register value in a local variable for ease of debugging.
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1185,7 +1185,9 @@ RETRY_TRY_BLOCK: CASE(OP_RAISE) { /* 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; } |
