1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-30 11:16:38 -05:00
denoland-deno/cli/js/web/dom_exception.ts
2020-07-06 21:45:39 -04:00

14 lines
319 B
TypeScript

// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
export class DOMExceptionImpl extends Error implements DOMException {
readonly #name: string;
constructor(message = "", name = "Error") {
super(message);
this.#name = name;
}
get name(): string {
return this.#name;
}
}