aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/javascript.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/javascript.zig')
-rw-r--r--src/bun.js/javascript.zig14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig
index fc1817b9b..9b7446d9c 100644
--- a/src/bun.js/javascript.zig
+++ b/src/bun.js/javascript.zig
@@ -859,6 +859,15 @@ pub const VirtualMachine = struct {
.tag = ResolvedSource.Tag.@"node:process",
};
},
+ .@"node:os" => {
+ return ResolvedSource{
+ .allocator = null,
+ .source_code = ZigString.init(Node.Os.code),
+ .specifier = ZigString.init("node:os"),
+ .source_url = ZigString.init("node:os"),
+ .hash = 0,
+ };
+ },
.@"bun:ffi" => {
return ResolvedSource{
.allocator = null,
@@ -2791,6 +2800,7 @@ pub const HardcodedModule = enum {
@"node:fs/promises",
@"node:http",
@"node:module",
+ @"node:os",
@"node:stream",
@"node:path",
@"node:perf_hooks",
@@ -2824,6 +2834,7 @@ pub const HardcodedModule = enum {
.{ "node:fs/promises", HardcodedModule.@"node:fs/promises" },
.{ "node:http", HardcodedModule.@"node:http" },
.{ "node:module", HardcodedModule.@"node:module" },
+ .{ "node:os", HardcodedModule.@"node:os" },
.{ "node:path", HardcodedModule.@"node:path" },
.{ "node:path/posix", HardcodedModule.@"node:path" },
.{ "node:path/win32", HardcodedModule.@"node:path" },
@@ -2835,6 +2846,7 @@ pub const HardcodedModule = enum {
.{ "node:timers", HardcodedModule.@"node:timers" },
.{ "node:timers/promises", HardcodedModule.@"node:timers/promises" },
.{ "node:url", HardcodedModule.@"node:url" },
+ .{ "os", HardcodedModule.@"node:os" },
.{ "path", HardcodedModule.@"node:path" },
.{ "process", HardcodedModule.@"node:process" },
.{ "streams", HardcodedModule.@"node:stream" },
@@ -2866,6 +2878,7 @@ pub const HardcodedModule = enum {
.{ "node:fs/promises", "node:fs/promises" },
.{ "node:http", "node:http" },
.{ "node:module", "node:module" },
+ .{ "node:os", "node:os" },
.{ "node:path", "node:path" },
.{ "node:path/posix", "node:path" },
.{ "node:path/win32", "node:path" },
@@ -2877,6 +2890,7 @@ pub const HardcodedModule = enum {
.{ "node:timers", "node:timers" },
.{ "node:timers/promises", "node:timers/promises" },
.{ "node:url", "node:url" },
+ .{ "os", "node:os" },
.{ "path", "node:path" },
.{ "path/posix", "node:path" },
.{ "path/win32", "node:path" },