deno
deno copied to clipboard
fix(ext/node): avoid own `toString` on error instances
These errors shouldn't have enumerable toString properties.
The implementation is identical to the inherited from NodeErrorAbstraction, so overrides look redundant.
Thanks for the PR @LiviaMedeiros, but it appears it causes some failures in compatibility tests from the Node.js codebase.
Couldn't reproduce the failures locally; let's see if redefining them as non-enumerable works.
closing this because it's old