diff options
Diffstat (limited to 'src/js/node/fs.js')
-rw-r--r-- | src/js/node/fs.js | 2 |
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. |