From 2a695a9721016e0be5590cbfd6c070a2a00e2575 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 20 Jul 2009 18:19:13 +0200 Subject: [PATCH] Array.prototype.encodeUtf8 renamed to node.encodeUtf8(array) --- src/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.js b/src/util.js index 0c336920f04..da1666a4681 100644 --- a/src/util.js +++ b/src/util.js @@ -20,8 +20,8 @@ node.inherits = function (ctor, superCtor) { }; // This is useful for dealing with raw encodings. -Array.prototype.encodeUtf8 = function () { - return String.fromCharCode.apply(String, this); +node.encodeUtf8 = function (array) { + return String.fromCharCode.apply(String, array); }; node.cat = function(location, encoding, callback) {