diff --git a/lib/internal/fs/promises.js b/lib/internal/fs/promises.js index 39c662fdc5b9c8..df80efb514d2dc 100644 --- a/lib/internal/fs/promises.js +++ b/lib/internal/fs/promises.js @@ -431,7 +431,7 @@ async function rename(oldPath, newPath) { async function truncate(path, len = 0) { const fd = await open(path, 'r+'); - return ftruncate(fd, len).finally(fd.close.bind(fd)); + return ftruncate(fd, len).finally(fd.close); } async function ftruncate(handle, len = 0) {