Skip to content

chore: bump napi: drain the platform's fallback foreground-task queue - #6845

Open
Arshia001 wants to merge 1 commit into
guest-heap-mandatory-allocfrom
fix/foreground-task-queue-drain
Open

chore: bump napi: drain the platform's fallback foreground-task queue#6845
Arshia001 wants to merge 1 commit into
guest-heap-mandatory-allocfrom
fix/foreground-task-queue-drain

Conversation

@Arshia001

Copy link
Copy Markdown
Member

Picks up wasmerio/napi#50 (branch `fix/foreground-task-queue-drain` on top
of `guest-heap-mandatory-alloc`), which fixes V8-internal
FinalizationRegistry cleanup callbacks never firing in the napi-v8
embedding: the cleanup task V8 posts after GC was silently dropped whenever
the guest hadn't bound its own foreground-task hook (edgejs never does --
it drives everything through `unofficial_napi_process_microtasks`),
because nothing pumped the fallback platform runner those tasks fell back
to.

See wasmerio/napi#50 for the root-cause writeup and verification (standalone
V8 repro + before/after FinalizationRegistry/WeakRef fire-rate tests).

Stacked on #6844.

Picks up wasmerio/napi#<pending> (branch fix/foreground-task-queue-drain
on top of guest-heap-mandatory-alloc), which fixes V8-internal
FinalizationRegistry cleanup callbacks never firing in the napi-v8
embedding: the cleanup task V8 posts after GC is silently dropped
whenever the guest hasn't bound its own foreground-task hook (edgejs
never does -- it drives everything through
unofficial_napi_process_microtasks), because nothing pumped the
fallback platform runner those tasks fell back to.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant