Skip to content

Conversation

@karlseguin
Copy link
Collaborator

This defaults to Auto, which means it runs when the call stack reaches 0. It appears that both Node and Deno set this to explicit.

I don't really understand why Auto doesn't work. It says the call stack is the C++/C callstack, and I don't see what would block the current code from reaching a depth of 0. Still, we already have explicit calls to performMicrotasksCheckpoint which ties it holistically with our scheduler, so having it be explicit like this should...well make it more explicit

This broke a test, but since the tests are being redone in the fetch PR I simply removed the offending one.

This defaults to Auto, which means it runs when the call stack reaches 0.
It appears that both Node and Deno set this to explicit.

I don't really understand why Auto doesn't work. It says the call stack is the
C++/C callstack, and I don't see what would block the current code from reaching
a depth of 0. Still, we already have explicit calls to performMicrotasksCheckpoint
which ties it holistically with our scheduler, so having it be explicit like
this should...well make it more explicit

This broke a test, but since the tests are being redone in the [fetch PR](#972) I simply removed the offending one.
@krichprollsch krichprollsch merged commit 81ed4f3 into main Sep 16, 2025
29 of 34 checks passed
@krichprollsch krichprollsch deleted the explicit_microtask branch September 16, 2025 07:38
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants