From 8494557006c00a02643bf4d92007a5480932bc6d Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 8 Aug 2017 01:55:46 +0900 Subject: Set the current `pc` as the error position in `OP_ERR`; ref #3765 --- src/vm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vm.c') 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; } -- cgit v1.2.3