Skip to content

Commit

Permalink
fix(ext/fs): do not throw for bigint ctime/mtime/atime (#27453)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored and dsherret committed Jan 9, 2025
1 parent 78827c7 commit 5c4dd74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ext/fs/30_fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const {
Error,
Function,
MathTrunc,
Number,
ObjectEntries,
ObjectDefineProperty,
ObjectPrototypeIsPrototypeOf,
Expand Down Expand Up @@ -373,12 +374,12 @@ function parseFileInfo(response) {
isDirectory: response.isDirectory,
isSymlink: response.isSymlink,
size: response.size,
mtime: response.mtimeSet === true ? new Date(response.mtime) : null,
atime: response.atimeSet === true ? new Date(response.atime) : null,
mtime: response.mtimeSet === true ? new Date(Number(response.mtime)) : null,
atime: response.atimeSet === true ? new Date(Number(response.atime)) : null,
birthtime: response.birthtimeSet === true
? new Date(response.birthtime)
: null,
ctime: response.ctimeSet === true ? new Date(response.ctime) : null,
ctime: response.ctimeSet === true ? new Date(Number(response.ctime)) : null,
dev: response.dev,
mode: response.mode,
ino: unix ? response.ino : null,
Expand Down

0 comments on commit 5c4dd74

Please sign in to comment.