Skip to content

Conversation

@trop
Copy link
Contributor

@trop trop bot commented May 3, 2021

Backport of #28957

See that PR for details.

Notes: Allow Node.js to manage microtasks queue by using explicit microtasks policy before calling uv_run()

indutny added 2 commits May 3, 2021 21:36
When `uv_run()` resulted in invocation of JS functions the microtask
queue checkpoint in Node's CallbackScope was a no-op because the
expected microtask queue policy was `kExplicit` and Electron ran under
`kScoped` policy. This change switches policy to `kExplicit` right
before `uv_run()` and reverts it back to original value after `uv_run()`
completes to provide better compatibility with Node.
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label May 3, 2021
@trop trop bot added 13-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels May 3, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label May 3, 2021
@deepak1556 deepak1556 merged commit 9c1c878 into 13-x-y May 4, 2021
@release-clerk
Copy link

release-clerk bot commented May 4, 2021

Release Notes Persisted

Allow Node.js to manage microtasks queue by using explicit microtasks policy before calling uv_run()

@trop trop bot deleted the trop/13-x-y-bp-fix-allow-node-js-to-manage-microtasks-queue-1620077798325 branch May 4, 2021 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

13-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants