From c98d445b636568c893ae9858a7010a575dd03812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 13 Jun 2024 09:21:05 +0200 Subject: [PATCH] Save cur_pc on delete OP Fixes: https://github.com/quickjs-ng/quickjs/issues/431 --- quickjs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/quickjs.c b/quickjs.c index 50c76484..978ade30 100644 --- a/quickjs.c +++ b/quickjs.c @@ -16860,6 +16860,7 @@ static JSValue JS_CallInternal(JSContext *caller_ctx, JSValue func_obj, } BREAK; CASE(OP_delete): + sf->cur_pc = pc; if (js_operator_delete(ctx, sp)) goto exception; sp--;