From 46245b830a24930ab36f8ce2831325cdd1da17d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=91=9E=E4=B8=B0?= Date: Sat, 25 Sep 2021 01:07:22 +0800 Subject: fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851) Co-authored-by: Luca Casonato Co-authored-by: Yoshiya Hinosawa --- ext/web/01_dom_exception.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ext/web/01_dom_exception.js') diff --git a/ext/web/01_dom_exception.js b/ext/web/01_dom_exception.js index 0d9e82c56..ae478da2b 100644 --- a/ext/web/01_dom_exception.js +++ b/ext/web/01_dom_exception.js @@ -18,7 +18,6 @@ ObjectEntries, ObjectSetPrototypeOf, SymbolFor, - SymbolToStringTag, } = window.__bootstrap.primordials; const webidl = window.__bootstrap.webidl; const consoleInternal = window.__bootstrap.console; @@ -120,10 +119,6 @@ return this.#code; } - get [SymbolToStringTag]() { - return "DOMException"; - } - [SymbolFor("Deno.customInspect")](inspect) { if (this instanceof DOMException) { return `DOMException: ${this.#message}`; -- cgit v1.2.3