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
I found this issue working with Deno (v1.23.3) and another library that has a transitive dependency on setimmediate. That bug report is here.
The bug is that if setimmediate is referenced in a Deno script, the deno script will never finish the process normally. Instead, Deno.exit() (similar to NodeJS process.exit()) must be called.
To reproduce:
Have Deno installed, or run it from a Docker container (eg. docker run -it --init denoland/deno:ubuntu sh)
Create a test.ts file with the following contents:
import*assetImmediatefrom'https://raw.githubusercontent.com/YuzuJS/setImmediate/master/setImmediate.js';console.log('End of program',setImmediate);
Run using deno run test.ts
Expected:
"End of program Module {}" is logged to console
The Deno process exits.
Observed:
"End of program Module {}" is logged to console
The Deno process never exits. It continues to idle.
I found this issue working with Deno (v1.23.3) and another library that has a transitive dependency on
setimmediate
. That bug report is here.The bug is that if
setimmediate
is referenced in a Deno script, the deno script will never finish the process normally. Instead,Deno.exit()
(similar to NodeJSprocess.exit()
) must be called.To reproduce:
docker run -it --init denoland/deno:ubuntu sh
)test.ts
file with the following contents:deno run test.ts
Expected:
Observed:
I'm pretty sure this is caused by the opening of a
MessageChannel
and setting a message listener for one of the ports; https://github.com/YuzuJS/setImmediate/blob/master/setImmediate.js#L126The text was updated successfully, but these errors were encountered: