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/13_message_port.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'ext/web/13_message_port.js') diff --git a/ext/web/13_message_port.js b/ext/web/13_message_port.js index 2768c0a92..c02b373d6 100644 --- a/ext/web/13_message_port.js +++ b/ext/web/13_message_port.js @@ -22,7 +22,6 @@ ObjectSetPrototypeOf, Symbol, SymbolFor, - SymbolToStringTag, TypeError, WeakSet, WeakSetPrototypeAdd, @@ -59,10 +58,6 @@ inspect({ port1: this.port1, port2: this.port2 }) }`; } - - get [SymbolToStringTag]() { - return "MessageChannel"; - } } webidl.configurePrototype(MessageChannel); @@ -174,10 +169,6 @@ this[_id] = null; } } - - get [SymbolToStringTag]() { - return "MessagePort"; - } } defineEventHandler(MessagePort.prototype, "message", function (self) { -- cgit v1.2.3