From 1ba2c3213526ccacac587dd10362626cec862d36 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 11 Jun 2011 08:51:48 +0200 Subject: [PATCH] Massage util.inherits for perf increase --- lib/util.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 4241ba0..0239434 100644 --- a/lib/util.js +++ b/lib/util.js @@ -423,6 +423,11 @@ exports.pump = function(readStream, writeStream, callback) { exports.inherits = function(ctor, superCtor) { ctor.super_ = superCtor; ctor.prototype = Object.create(superCtor.prototype, { - constructor: { value: ctor, enumerable: false } + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true + } }); }; -- 2.7.4