From b33cdf586a4046a024894bba97b185015d8ea0e0 Mon Sep 17 00:00:00 2001 From: Hanaasagi Date: Sun, 25 Jun 2023 21:59:39 +0900 Subject: [PATCH] Fix the parameters of the `WriteStream` constructor. Close: https://github.com/oven-sh/bun/issues/3395 --- src/js/node/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/node/fs.js b/src/js/node/fs.js index 2bd752d190..8d9f0d235b 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, {