diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-08-07 16:55:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 16:55:02 +0200 |
commit | 41215eb29c50cdf7048f7431076ccc986b514f6d (patch) | |
tree | 519d44a39dbd01e6175abf9302f105d67ce2cc52 /op_crates/web/00_dom_exception.js | |
parent | d7dcbab3efeeac5233c9cedb6edacc7202515449 (diff) |
Op crate for Web APIs (#6906)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'op_crates/web/00_dom_exception.js')
-rw-r--r-- | op_crates/web/00_dom_exception.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/op_crates/web/00_dom_exception.js b/op_crates/web/00_dom_exception.js new file mode 100644 index 000000000..6d72779b0 --- /dev/null +++ b/op_crates/web/00_dom_exception.js @@ -0,0 +1,15 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +class DOMException extends Error { + #name = ""; + + constructor(message = "", name = "Error") { + super(message); + this.#name = name; + } + + get name() { + return this.#name; + } +} |