aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/fs.js
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-08-29 09:44:45 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-29 09:44:45 -0700
commitde58e9d583ab9f2a5a96401d5f650dd310ca01e3 (patch)
tree0dc74dd42a370116d045c3410c2aa176c281c42b /src/js/node/fs.js
parent07d8623976cd5fe1b11dd13f6988cd02e4fc5c15 (diff)
downloadbun-de58e9d583ab9f2a5a96401d5f650dd310ca01e3.tar.gz
bun-de58e9d583ab9f2a5a96401d5f650dd310ca01e3.tar.zst
bun-de58e9d583ab9f2a5a96401d5f650dd310ca01e3.zip
emit open and call close callback (#4384)
Diffstat (limited to 'src/js/node/fs.js')
-rw-r--r--src/js/node/fs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/node/fs.js b/src/js/node/fs.js
index a6b1adb88..d11ac657f 100644
--- a/src/js/node/fs.js
+++ b/src/js/node/fs.js
@@ -547,7 +547,7 @@ ReadStream = (function (InternalReadStream) {
}
close(cb) {
- if (typeof cb === "function") eos_()(this, cb);
+ if (typeof cb === "function") Stream.eos(this, cb);
this.destroy();
}