fix push array on itself

This commit is contained in:
2026-02-17 13:27:08 -06:00
parent 2e78e7e0b8
commit ad26e71ad1
2 changed files with 11 additions and 4 deletions

View File

@@ -573,8 +573,9 @@ JSValue cell_rt_goinvoke(JSContext *ctx, JSValue frame_val) {
/* --- Array push/pop --- */
void cell_rt_push(JSContext *ctx, JSValue arr, JSValue val) {
JSValue cell_rt_push(JSContext *ctx, JSValue arr, JSValue val) {
JS_ArrayPush(ctx, &arr, val);
return arr;
}
JSValue cell_rt_pop(JSContext *ctx, JSValue arr) {