diff --git a/lib/internal/fs/promises.js b/lib/internal/fs/promises.js index ea9482e69dc904..9ae66a8e073442 100644 --- a/lib/internal/fs/promises.js +++ b/lib/internal/fs/promises.js @@ -528,7 +528,7 @@ async function read(handle, bufferOrParams, offset, length, position) { offset = 0, length = buffer.byteLength - offset, position = null - } = offset ?? ObjectCreate(null)); + } = offset); } if (offset == null) {