mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 04:52:26 -05:00
fix(ext/fs): do not throw for bigint ctime/mtime/atime (#27453)
This commit is contained in:
parent
e6869d7fa6
commit
2e58e088b0
1 changed files with 4 additions and 3 deletions
|
@ -77,6 +77,7 @@ const {
|
|||
Error,
|
||||
Function,
|
||||
MathTrunc,
|
||||
Number,
|
||||
ObjectEntries,
|
||||
ObjectDefineProperty,
|
||||
ObjectPrototypeIsPrototypeOf,
|
||||
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue