Tags: eddie-wang/node
Tags
lib: fix event race condition with -e Commit c5b07d4 ("lib: fix beforeExit not working with -e") runs the to-be-evaluated code at a later time than before because it switches from `process.nextTick()` to `setImmediate()`. It affects `-e 'process.on("message", ...)'` because there is now a larger time gap between startup and attaching the event listener, increasing the chances of missing early messages. I'm reasonably sure `process.nextTick()` was also susceptible to that, only less pronounced. Avoid the problem altogether by evaluating the code synchronously. Harmonizes the logic with `Module.runMain()` from lib/module.js which also calls `process._tickCallback()` afterwards. PR-URL: nodejs/node#11958 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
Bump NODE_MODULE_VERSION to 53 This matches the number in nodejs/node#10992.
Bump NODE_MODULE_VERSION to 53 This matches the number in nodejs/node#10992.
Bump NODE_MODULE_VERSION to 53 This matches the number in nodejs/node#10992.
Add missing return value to node::url::To{Ascii,Unicode}
Add missing return value to node::url::To{Ascii,Unicode}
PreviousNext