This commit is contained in:
2026-02-19 00:47:34 -06:00
parent 19132c1517
commit 3f206d80dd
4 changed files with 299 additions and 222 deletions

View File

@@ -2102,6 +2102,7 @@ void JS_FreeContext (JSContext *ctx) {
JSRuntime *rt = ctx->rt;
int i;
cell_rt_free_native_state(ctx);
JS_DeleteGCRef(ctx, &ctx->suspended_frame_ref);
for (i = 0; i < ctx->class_count; i++) {
@@ -5332,7 +5333,7 @@ JSValue js_regexp_toString (JSContext *ctx, JSValue this_val, int argc, JSValue
int lre_check_timeout (void *opaque) {
JSContext *ctx = opaque;
if (cell_rt_native_active ()) {
if (cell_rt_native_active (ctx)) {
atomic_store_explicit (&ctx->pause_flag, 0, memory_order_relaxed);
return 0;
}