From 15b7f9793f0b0121bbf293a0d61340dec820198c Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 3 Sep 2022 22:47:00 -0700 Subject: [Node API] Fix `napi_module_register` --- src/bun.js/javascript.zig | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/bun.js/javascript.zig') diff --git a/src/bun.js/javascript.zig b/src/bun.js/javascript.zig index 54486e38a..5fc440ee7 100644 --- a/src/bun.js/javascript.zig +++ b/src/bun.js/javascript.zig @@ -823,6 +823,7 @@ pub const VirtualMachine = struct { .@"node:string_decoder" => return jsSyntheticModule(.@"node:string_decoder"), .@"node:module" => return jsSyntheticModule(.@"node:module"), .@"node:events" => return jsSyntheticModule(.@"node:events"), + .@"node:process" => return jsSyntheticModule(.@"node:process"), .@"node:stream" => { return ResolvedSource{ .allocator = null, @@ -851,16 +852,7 @@ pub const VirtualMachine = struct { .hash = 0, }; }, - .@"node:process" => { - return ResolvedSource{ - .allocator = null, - .source_code = ZigString.init(""), - .specifier = ZigString.init("node:process"), - .source_url = ZigString.init("node:process"), - .hash = 0, - .tag = ResolvedSource.Tag.@"node:process", - }; - }, + .@"node:os" => { return ResolvedSource{ .allocator = null, -- cgit v1.2.3