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
{{ message }}
Repository navigation
Errors thrown by node:fs callbacks and node:fs/promises: util.types.isNativeError() returns false #2152
...cause util.types.isNativeError() to report false.
The errors have the expected properties such as code: 'ENOENT', but util.types.isNativeError(error) returns false. Equivalent errors from synchronous node:fs APIs return true (also tested to return true: node:child_process, node:crypto, node:zlib).
Compare synchronous node:fs, node:fs/promises, and callback-based node:fs errors, and observe util.types.isNativeError() returning false for the asynchronous APIs 💥
Errors from all Node.js APIs (incl. callback-based node:fs APIs and node:fs/promises) are recognized by util.types.isNativeError(), like equivalent synchronous node:fs errors.
Activity