mirror of
https://github.com/denoland/deno.git
synced 2024-11-02 09:34:19 -04:00
15 lines
310 B
TypeScript
15 lines
310 B
TypeScript
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||
|
|
||
|
export class DOMExceptionImpl extends Error implements DOMException {
|
||
|
#name: string;
|
||
|
|
||
|
constructor(message = "", name = "Error") {
|
||
|
super(message);
|
||
|
this.#name = name;
|
||
|
}
|
||
|
|
||
|
get name(): string {
|
||
|
return this.#name;
|
||
|
}
|
||
|
}
|