From d308e8d0c0469419517e05a36ba070633168dc67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 29 Apr 2020 22:38:10 +0200 Subject: BREAKING: remove custom implementation of Deno.Buffer.toString() (#4992) Keep in mind Buffer.toString() still exists, but returns [object Object]. Reason for removal of Buffer.toString() was that it implicitly used TextDecoder with fixed "utf-8" encoding and no way to customize the encoding. --- cli/js/tests/buffer_test.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'cli/js/tests') diff --git a/cli/js/tests/buffer_test.ts b/cli/js/tests/buffer_test.ts index e45bcb976..ac2d7db7b 100644 --- a/cli/js/tests/buffer_test.ts +++ b/cli/js/tests/buffer_test.ts @@ -35,7 +35,6 @@ function check(buf: Deno.Buffer, s: string): void { const decoder = new TextDecoder(); const bytesStr = decoder.decode(bytes); assertEquals(bytesStr, s); - assertEquals(buf.length, buf.toString().length); assertEquals(buf.length, s.length); } -- cgit v1.2.3