diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-08 01:55:46 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-08-08 01:55:46 +0900 |
| commit | 8494557006c00a02643bf4d92007a5480932bc6d (patch) | |
| tree | a6cabf9f0f49550b09ffab88edd15c04d3cd26c8 /src | |
| parent | e910cf61693c8c933c11c726c88eec82a6da0a76 (diff) | |
| download | mruby-8494557006c00a02643bf4d92007a5480932bc6d.tar.gz mruby-8494557006c00a02643bf4d92007a5480932bc6d.zip | |
Set the current `pc` as the error position in `OP_ERR`; ref #3765
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2907,6 +2907,7 @@ RETRY_TRY_BLOCK: else { exc = mrb_exc_new_str(mrb, E_LOCALJUMP_ERROR, msg); } + ERR_PC_SET(mrb, pc); mrb_exc_set(mrb, exc); goto L_RAISE; } |
