From afd66c62ffb5a92a6880c73b94e488950e7682f4 Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Thu, 22 Dec 2022 15:58:17 -0800 Subject: fix createReadStream hang highWaterMark test not working correctly but this prevents createReadStream from hanging --- src/bun.js/fs.exports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bun.js/fs.exports.js b/src/bun.js/fs.exports.js index 6f63ccb84..649a31ef4 100644 --- a/src/bun.js/fs.exports.js +++ b/src/bun.js/fs.exports.js @@ -375,7 +375,7 @@ function getLazyReadStream() { [readStreamPathFastPathSymbol]; _construct(callback) { - super._construct && super._construct(callback); + callback(); this.emit("open", this.fd); this.emit("ready"); } -- cgit v1.2.3