1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -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 Bartek Iwańczuk
parent e73f614b46
commit a8c7aec937
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

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 {