aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/fs.js
diff options
context:
space:
mode:
authorGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-08-15 21:51:43 -0700
committerGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-08-15 21:51:43 -0700
commit9efeef2e245acbb4f7d83b737e107c4972287527 (patch)
treece0eabc70138f4d5f41f563af8ef94171bbcd35b /src/js/node/fs.js
parent67a8b75183996f1b0f981e4a035f3685018be287 (diff)
downloadbun-9efeef2e245acbb4f7d83b737e107c4972287527.tar.gz
bun-9efeef2e245acbb4f7d83b737e107c4972287527.tar.zst
bun-9efeef2e245acbb4f7d83b737e107c4972287527.zip
res.then
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 e837816e9..3dc3e2da7 100644
--- a/src/js/node/fs.js
+++ b/src/js/node/fs.js
@@ -601,7 +601,7 @@ ReadStream = (function (InternalReadStream) {
if ($isPromise(res)) {
var then = res?.then;
if (then && $isCallable(then)) {
- then(
+ res.then(
() => {
this[kIoDone] = true;
// Tell ._destroy() that it's safe to close the fd now.