1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

fix(ext/node): use Deno.FsFile.statSync() (#24234)

This commit is contained in:
Asher Gomez 2024-06-18 08:40:05 +10:00 committed by GitHub
parent 257f027325
commit 6819c3d7f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// deno-lint-ignore-file no-deprecated-deno-api
import { fstat, fstatSync } from "node:fs"; import { fstat, fstatSync } from "node:fs";
import { fail } from "@std/assert/mod.ts"; import { fail } from "@std/assert/mod.ts";
import { assertStats, assertStatsBigInt } from "./_fs_stat_test.ts"; import { assertStats, assertStatsBigInt } from "./_fs_stat_test.ts";
@ -83,7 +81,7 @@ Deno.test({
// //
assertStatsBigInt( assertStatsBigInt(
fstatSync(file.rid, { bigint: true }), fstatSync(file.rid, { bigint: true }),
Deno.fstatSync(file.rid), file.statSync(),
); );
//main //main
} finally { } finally {