aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-31 03:04:59 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-31 03:04:59 -0800
commit4bfdad298148196beb43f1f9fd6fe2bb556cce3f (patch)
treeef2a67272043870dfa8bc5d767c508cdca77e637 /src/bun.js
parent3ddd8b2fa508c9c4558dfbb9c083929b5960385b (diff)
downloadbun-4bfdad298148196beb43f1f9fd6fe2bb556cce3f.tar.gz
bun-4bfdad298148196beb43f1f9fd6fe2bb556cce3f.tar.zst
bun-4bfdad298148196beb43f1f9fd6fe2bb556cce3f.zip
Fix missing `*ms` getters in Stat
Related to #1949
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/node/types.zig24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/bun.js/node/types.zig b/src/bun.js/node/types.zig
index a1cf3208c..5628e8ec8 100644
--- a/src/bun.js/node/types.zig
+++ b/src/bun.js/node/types.zig
@@ -1141,19 +1141,19 @@ fn StatsLike(comptime name: [:0]const u8, comptime T: type) type {
.get = JSC.To.JS.Getter(This, .birthtime),
.name = "birthtime",
},
- .atime_ms = .{
+ .atimeMs = .{
.get = JSC.To.JS.Getter(This, .atime_ms),
.name = "atimeMs",
},
- .mtime_ms = .{
+ .mtimeMs = .{
.get = JSC.To.JS.Getter(This, .mtime_ms),
.name = "mtimeMs",
},
- .ctime_ms = .{
+ .ctimeMs = .{
.get = JSC.To.JS.Getter(This, .ctime_ms),
.name = "ctimeMs",
},
- .birthtime_ms = .{
+ .birthtimeMs = .{
.get = JSC.To.JS.Getter(This, .birthtime_ms),
.name = "birthtimeMs",
},
@@ -1215,27 +1215,27 @@ fn StatsLike(comptime name: [:0]const u8, comptime T: type) type {
};
}
- pub fn isBlockDevice(this: *Stats) JSC.JSValue {
+ pub fn isBlockDevice(this: *This) JSC.JSValue {
return JSC.JSValue.jsBoolean(os.S.ISBLK(@intCast(Mode, this.mode)));
}
- pub fn isCharacterDevice(this: *Stats) JSC.JSValue {
+ pub fn isCharacterDevice(this: *This) JSC.JSValue {
return JSC.JSValue.jsBoolean(os.S.ISCHR(@intCast(Mode, this.mode)));
}
- pub fn isDirectory(this: *Stats) JSC.JSValue {
+ pub fn isDirectory(this: *This) JSC.JSValue {
return JSC.JSValue.jsBoolean(os.S.ISDIR(@intCast(Mode, this.mode)));
}
- pub fn isFIFO(this: *Stats) JSC.JSValue {
+ pub fn isFIFO(this: *This) JSC.JSValue {
return JSC.JSValue.jsBoolean(os.S.ISFIFO(@intCast(Mode, this.mode)));
}
- pub fn isFile(this: *Stats) JSC.JSValue {
+ pub fn isFile(this: *This) JSC.JSValue {
return JSC.JSValue.jsBoolean(os.S.ISREG(@intCast(Mode, this.mode)));
}
- pub fn isSocket(this: *Stats) JSC.JSValue {
+ pub fn isSocket(this: *This) JSC.JSValue {
return JSC.JSValue.jsBoolean(os.S.ISSOCK(@intCast(Mode, this.mode)));
}
@@ -1244,7 +1244,7 @@ fn StatsLike(comptime name: [:0]const u8, comptime T: type) type {
// still just return false.
//
// See https://nodejs.org/api/fs.html#statsissymboliclink
- pub fn isSymbolicLink(this: *Stats) JSC.JSValue {
+ pub fn isSymbolicLink(this: *This) JSC.JSValue {
return JSC.JSValue.jsBoolean(os.S.ISLNK(@intCast(Mode, this.mode)));
}
@@ -1254,7 +1254,7 @@ fn StatsLike(comptime name: [:0]const u8, comptime T: type) type {
return Class.make(ctx, _this);
}
- pub fn finalize(this: *Stats) void {
+ pub fn finalize(this: *This) void {
bun.default_allocator.destroy(this);
}
};