deno
deno copied to clipboard
chore(ext/web): use `Error.captureStackTrace` in `DOMException` constructor
This makes DOMException's stack property behave the same as native errors' – stack is now an own accessor property on every instance, and the getter calls Error.prepareStackTrace.
denoland/deno_core#754 depends on this.