summaryrefslogtreecommitdiff
path: root/test/parallel/test-string-decoder-end.js
diff options
context:
space:
mode:
authorBrian White <mscdex@mscdex.net>2016-05-15 14:53:08 -0400
committerBrian White <mscdex@mscdex.net>2016-05-29 14:48:11 -0400
commitd23b7d2656dc25f6a33bcd436e15e9fd84aabc27 (patch)
tree060244c16130683bacea879e9750c5c15ca6a592 /test/parallel/test-string-decoder-end.js
parent435e673efdfa24a0446ff1e93fa3baa19437f335 (diff)
downloadandroid-node-v8-d23b7d2656dc25f6a33bcd436e15e9fd84aabc27.tar.gz
android-node-v8-d23b7d2656dc25f6a33bcd436e15e9fd84aabc27.tar.bz2
android-node-v8-d23b7d2656dc25f6a33bcd436e15e9fd84aabc27.zip
string_decoder: rewrite implementation
This commit provides a rewrite of StringDecoder that both improves performance (for non-single-byte encodings) and understandability. Additionally, StringDecoder instantiation performance has increased considerably due to inlinability and more efficient encoding name checking. PR-URL: https://github.com/nodejs/node/pull/6777 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel/test-string-decoder-end.js')
-rw-r--r--test/parallel/test-string-decoder-end.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-string-decoder-end.js b/test/parallel/test-string-decoder-end.js
index e13ddcb167..33b47a034a 100644
--- a/test/parallel/test-string-decoder-end.js
+++ b/test/parallel/test-string-decoder-end.js
@@ -51,6 +51,8 @@ function testBuf(encoding, buf) {
var res3 = buf.toString(encoding);
console.log('expect=%j', res3);
+ console.log('res1=%j', res1);
+ console.log('res2=%j', res2);
assert.equal(res1, res3, 'one byte at a time should match toString');
assert.equal(res2, res3, 'all bytes at once should match toString');
}