denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
98.05k stars 5.39k forks source link

FFI: Errors cannot be thrown after a `nonblocking` function call #18131

Open rojvv opened 1 year ago

rojvv commented 1 year ago
call_some_nonblocking_function();
console.debug("Reaches here.");
throw new Error(); // not thrown
rojvv commented 1 year ago

Full reproduction example: https://github.com/roj1512/deno-18131-reproduction

aapoalas commented 1 year ago

This seems to be essentially the same issue as https://github.com/denoland/deno/issues/14333 just with different API triggering the behaviour.