We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e81e031 commit 904b66dCopy full SHA for 904b66d
test/parallel/test-icu-transcode.js
@@ -70,3 +70,8 @@ assert.deepStrictEqual(
70
buffer.transcode(uint8array, 'latin1', 'utf16le'),
71
Buffer.from('hä', 'utf16le'));
72
}
73
+
74
+{
75
+ const dest = buffer.transcode(new Uint8Array(), 'utf8', 'latin1');
76
+ assert.strictEqual(dest.length, 0);
77
+}
0 commit comments