From 39d9281bb9359b823aa055119a21f7814e285eb4 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Thu, 7 Mar 2024 03:31:20 +0530 Subject: fix(ext/node): add default methods to fs.StatsBase (#22750) --- ext/node/polyfills/_fs/_fs_stat.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'ext/node/polyfills/_fs') diff --git a/ext/node/polyfills/_fs/_fs_stat.ts b/ext/node/polyfills/_fs/_fs_stat.ts index de9b69ba3..c4ed82d57 100644 --- a/ext/node/polyfills/_fs/_fs_stat.ts +++ b/ext/node/polyfills/_fs/_fs_stat.ts @@ -109,6 +109,28 @@ class StatsBase { this.size = size; this.blocks = blocks; } + + isFile() { + return false; + } + isDirectory() { + return false; + } + isSymbolicLink() { + return false; + } + isBlockDevice() { + return false; + } + isFIFO() { + return false; + } + isCharacterDevice() { + return false; + } + isSocket() { + return false; + } } // The Date constructor performs Math.floor() to the timestamp. -- cgit v1.2.3