From 262653cf0a7f2a20e7222b52a7588525116c6fd7 Mon Sep 17 00:00:00 2001 From: cava23 Date: Tue, 9 Dec 2014 16:48:04 -0500 Subject: [PATCH] Always write buffers to output to avoid any type coercion --- lib/io.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/io.js b/lib/io.js index 0840f8c..ed544b2 100644 --- a/lib/io.js +++ b/lib/io.js @@ -171,7 +171,7 @@ BinaryEncoder.prototype = { }, writeByte: function(value){ - this._output.write(value); + this._output.write(new Buffer([value])); }, writeNull : function() {