Set the current pc as the error position in OP_ERR; ref #3765

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-08-08 01:55:46 +09:00
parent e910cf6169
commit 8494557006
+1
View File
@@ -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;
}