From fcf9f0a7eeb3d462d5c6c2110ecdf5a4460c1736 Mon Sep 17 00:00:00 2001 From: Ai Hoshino Date: Mon, 26 Jun 2023 07:15:56 +0800 Subject: Fix the parameters of WriteStream constructor. (#3402) * Fix the parameters of the `WriteStream` constructor. Close: https://github.com/oven-sh/bun/issues/3395 * test append mode in `createWriteStream` * fix lint * wait first stream finished --- src/js/node/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/js/node/fs.js') diff --git a/src/js/node/fs.js b/src/js/node/fs.js index 2bd752d19..8d9f0d235 100644 --- a/src/js/node/fs.js +++ b/src/js/node/fs.js @@ -642,8 +642,8 @@ WriteStream = (function (InternalWriteStream) { }); return Object.defineProperty( - function WriteStream(options) { - return new InternalWriteStream(options); + function WriteStream(path, options) { + return new InternalWriteStream(path, options); }, Symbol.hasInstance, { -- cgit v1.2.3