From bb00fef3cd2ff446aa5c1894fb4830f83750018a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 26 Mar 2010 08:35:46 -0700 Subject: [PATCH] Change Buffer.toString to conform to CommonJS Binary/F Also add Buffer.inspect --- lib/buffer.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/lib/buffer.js b/lib/buffer.js index d3988597485..4f7699e6387 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -7,7 +7,7 @@ function toHex (n) { return n.toString(16); } -Buffer.prototype.toString = function () { +Buffer.prototype.inspect = function () { var s = "