aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/fs.js
diff options
context:
space:
mode:
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.