You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This runs multiple times, with the current node & with versions of electron from 6 to 9.
For a given run, it prints IT WORKED! when setTimeout works normally, and nothing otherwise.
Additional Information
Somehow, when wrapping the setTimeout in a process.nextTick, or a setImmediate, it works.
This makes me thing that it's linked to #7079 and to the activation of the uv loop in lib/common/init.ts .
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Issue Details
When
ELECTRON_RUN_AS_NODE
is enabled,setTimeout
is basically broken. It works the first time it's used, not the second time.Expected Behavior
setTimeout should work consistently
Actual Behavior
When
ELECTRON_RUN_AS_NODE
is enabled,setTimeout
is basically broken. It works the first time it's used, not the second time.To Reproduce
This runs multiple times, with the current node & with versions of electron from 6 to 9.
For a given run, it prints
IT WORKED!
whensetTimeout
works normally, and nothing otherwise.Additional Information
Somehow, when wrapping the
setTimeout
in aprocess.nextTick
, or asetImmediate
, it works.This makes me thing that it's linked to #7079 and to the activation of the uv loop in lib/common/init.ts .
The text was updated successfully, but these errors were encountered: