mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 11:16:38 -05:00
14 lines
319 B
TypeScript
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;
|
|
}
|
|
}
|