aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/fs.js
diff options
context:
space:
mode:
authorGravatar Ai Hoshino <ambiguous404@gmail.com> 2023-06-26 07:15:56 +0800
committerGravatar GitHub <noreply@github.com> 2023-06-25 16:15:56 -0700
commitfcf9f0a7eeb3d462d5c6c2110ecdf5a4460c1736 (patch)
tree4f1852ecbbfd2e2638a0b4012e24c54321f6b96b /src/js/node/fs.js
parent33903ea892db861416f1f68d4c40536540719f4e (diff)
downloadbun-fcf9f0a7eeb3d462d5c6c2110ecdf5a4460c1736.tar.gz
bun-fcf9f0a7eeb3d462d5c6c2110ecdf5a4460c1736.tar.zst
bun-fcf9f0a7eeb3d462d5c6c2110ecdf5a4460c1736.zip
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
Diffstat (limited to 'src/js/node/fs.js')
-rw-r--r--src/js/node/fs.js4
1 files changed, 2 insertions, 2 deletions
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,
{