summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_fs/_fs_stat.ts
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-03-07 03:31:20 +0530
committerGitHub <noreply@github.com>2024-03-06 23:01:20 +0100
commit39d9281bb9359b823aa055119a21f7814e285eb4 (patch)
tree52560aa64f73c6489916bb05d2fe685ed2aded09 /ext/node/polyfills/_fs/_fs_stat.ts
parentfed9dec92a281070521743c3b415dd653f80b3ae (diff)
fix(ext/node): add default methods to fs.StatsBase (#22750)
Diffstat (limited to 'ext/node/polyfills/_fs/_fs_stat.ts')
-rw-r--r--ext/node/polyfills/_fs/_fs_stat.ts22
1 files changed, 22 insertions, 0 deletions
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.