From fde338bf83bdc7c0524734bb03f374e90dcd1cf1 Mon Sep 17 00:00:00 2001 From: Ryunosuke SATO Date: Fri, 28 Dec 2012 01:30:50 +0900 Subject: [PATCH] stream: speed up instantiation of readable stream - Stream.apply -> Stream.call --- lib/_stream_readable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 20ca64d17f..2a2abd4715 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -91,7 +91,7 @@ function Readable(options) { // legacy this.readable = true; - Stream.apply(this); + Stream.call(this); } // backwards compatibility.