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/08_text_encoding.js | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'ext/web/08_text_encoding.js') diff --git a/ext/web/08_text_encoding.js b/ext/web/08_text_encoding.js index e37fbdcd7..28f2848b8 100644 --- a/ext/web/08_text_encoding.js +++ b/ext/web/08_text_encoding.js @@ -20,7 +20,6 @@ PromiseResolve, StringPrototypeCharCodeAt, StringPrototypeSlice, - SymbolToStringTag, TypedArrayPrototypeSubarray, TypedArrayPrototypeSlice, Uint8Array, @@ -126,10 +125,6 @@ } } } - - get [SymbolToStringTag]() { - return "TextDecoder"; - } } webidl.configurePrototype(TextDecoder); @@ -182,10 +177,6 @@ }); return core.opSync("op_encoding_encode_into", source, destination); } - - get [SymbolToStringTag]() { - return "TextEncoder"; - } } webidl.configurePrototype(TextEncoder); @@ -272,10 +263,6 @@ webidl.assertBranded(this, TextDecoderStream); return this.#transform.writable; } - - get [SymbolToStringTag]() { - return "TextDecoderStream"; - } } webidl.configurePrototype(TextDecoderStream); @@ -345,10 +332,6 @@ webidl.assertBranded(this, TextEncoderStream); return this.#transform.writable; } - - get [SymbolToStringTag]() { - return "TextEncoderStream"; - } } webidl.configurePrototype(TextEncoderStream); -- cgit v1.2.3