Save cur_pc on delete OP

Fixes: https://github.com/quickjs-ng/quickjs/issues/431
This commit is contained in:
Saúl Ibarra Corretgé 2024-06-13 09:21:05 +02:00
parent b09ad82622
commit c98d445b63

View file

@ -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--;