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
When I was using MSW, one of the most popular HTTP mocking libraries, I faced an error caused by a lack of AsyncLocalStorage.disable() of node:async_hooks module. Here is the minimum code to reproduce the issue:
$ node
Welcome to Node.js v20.5.0.
Type ".help"for more information.
> new (await import('node:async_hooks')).AsyncLocalStorage().disable()
undefined
$ deno
Deno 1.41.1
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> new (await import('node:async_hooks')).AsyncLocalStorage().disable()
Uncaught TypeError: (intermediate value).disable is not a function
at <anonymous>:1:81
This would help MSW work in Deno and more people adopt this great runtime. Thanks!
The text was updated successfully, but these errors were encountered:
yasaichi
changed the title
[node-compat]
[node-compat] Lack of AsyncLocalStorage.disable() implementation
Mar 13, 2024
Version: Deno 1.41.1
When I was using MSW, one of the most popular HTTP mocking libraries, I faced an error caused by a lack of
AsyncLocalStorage.disable()
ofnode:async_hooks
module. Here is the minimum code to reproduce the issue:This would help MSW work in Deno and more people adopt this great runtime. Thanks!
The text was updated successfully, but these errors were encountered: