diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/tests/unit/stat_test.ts | 18 | ||||
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 30 |
2 files changed, 24 insertions, 24 deletions
diff --git a/cli/tests/unit/stat_test.ts b/cli/tests/unit/stat_test.ts index 572e54e25..f386fd92f 100644 --- a/cli/tests/unit/stat_test.ts +++ b/cli/tests/unit/stat_test.ts @@ -291,7 +291,7 @@ Deno.test( ignore: Deno.build.os !== "windows", permissions: { read: true, write: true }, }, - function statUnixFieldsOnWindows() { + function statNoUnixFields() { const enc = new TextEncoder(); const data = enc.encode("Hello"); const tempDir = Deno.makeTempDirSync(); @@ -299,14 +299,14 @@ Deno.test( Deno.writeFileSync(filename, data, { mode: 0o666 }); const s = Deno.statSync(filename); assert(s.dev !== 0); - assert(s.ino === 0); - assert(s.mode === 0); - assert(s.nlink === 0); - assert(s.uid === 0); - assert(s.gid === 0); - assert(s.rdev === 0); - assert(s.blksize === 0); - assert(s.blocks === 0); + assert(s.ino === null); + assert(s.mode === null); + assert(s.nlink === null); + assert(s.uid === null); + assert(s.gid === null); + assert(s.rdev === null); + assert(s.blksize === null); + assert(s.blocks === null); }, ); diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 472c147d0..7431d3c05 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -3082,37 +3082,37 @@ declare namespace Deno { dev: number; /** Inode number. * - * _Linux/Mac OS only, always returns 0 on Windows_ */ - ino: number; + * _Linux/Mac OS only._ */ + ino: number | null; /** **UNSTABLE**: Match behavior with Go on Windows for `mode`. * * The underlying raw `st_mode` bits that contain the standard Unix * permissions for this file/directory. */ - mode: number; + mode: number | null; /** Number of hard links pointing to this file. * - * _Linux/Mac OS only, always returns 0 on Windows_ */ - nlink: number; + * _Linux/Mac OS only._ */ + nlink: number | null; /** User ID of the owner of this file. * - * _Linux/Mac OS only, always returns 0 on Windows_ */ - uid: number; + * _Linux/Mac OS only._ */ + uid: number | null; /** Group ID of the owner of this file. * - * _Linux/Mac OS only, always returns 0 on Windows_ */ - gid: number; + * _Linux/Mac OS only._ */ + gid: number | null; /** Device ID of this file. * - * _Linux/Mac OS only, always returns 0 on Windows_ */ - rdev: number; + * _Linux/Mac OS only._ */ + rdev: number | null; /** Blocksize for filesystem I/O. * - * _Linux/Mac OS only, always returns 0 on Windows_ */ - blksize: number; + * _Linux/Mac OS only._ */ + blksize: number | null; /** Number of blocks allocated to the file, in 512-byte units. * - * _Linux/Mac OS only, always returns 0 on Windows_ */ - blocks: number; + * _Linux/Mac OS only._ */ + blocks: number | null; } /** Resolves to the absolute normalized path, with symbolic links resolved. |