diff options
author | 李瑞丰 <li15227870916@gmail.com> | 2021-09-25 01:07:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-25 02:07:22 +0900 |
commit | 46245b830a24930ab36f8ce2831325cdd1da17d3 (patch) | |
tree | c96c2a69a30120d2cdf639b72a3bace836417151 /ext/web/08_text_encoding.js | |
parent | 9705efd419ffa05b0d88e788e0ceb77e38078449 (diff) |
fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851)
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'ext/web/08_text_encoding.js')
-rw-r--r-- | ext/web/08_text_encoding.js | 17 |
1 files changed, 0 insertions, 17 deletions
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); |