summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-08-08 01:55:46 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-08-08 01:55:46 +0900
commit8494557006c00a02643bf4d92007a5480932bc6d (patch)
treea6cabf9f0f49550b09ffab88edd15c04d3cd26c8 /src/vm.c
parente910cf61693c8c933c11c726c88eec82a6da0a76 (diff)
downloadmruby-8494557006c00a02643bf4d92007a5480932bc6d.tar.gz
mruby-8494557006c00a02643bf4d92007a5480932bc6d.zip
Set the current `pc` as the error position in `OP_ERR`; ref #3765
Diffstat (limited to 'src/vm.c')
-rw-r--r--src/vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vm.c b/src/vm.c
index 152a28651..1d445563b 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -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;
}