mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Improve new TextDecoder().toString() (#2032)
This commit is contained in:
parent
ada5ffa610
commit
659acadf77
2 changed files with 14 additions and 0 deletions
|
@ -91,3 +91,11 @@ test(function textDecoderSharedInt32Array() {
|
|||
const actual = decoder.decode(i32);
|
||||
assertEquals(actual, "ABCDEFGH");
|
||||
});
|
||||
|
||||
test(function toStringShouldBeWebCompatibility() {
|
||||
const encoder = new TextEncoder();
|
||||
assertEquals(encoder.toString(), "[object TextEncoder]");
|
||||
|
||||
const decoder = new TextDecoder();
|
||||
assertEquals(decoder.toString(), "[object TextDecoder]");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue