aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-08-08 01:42:44 -0700
committerGravatar GitHub <noreply@github.com> 2023-08-08 01:42:44 -0700
commit320ee6b6b78bb2b9752efff45e83167e532c0b9d (patch)
tree2e3d5f87eab2b9975f03871c25308b8c75b6241f /src/js
parent38df5b146fab5e8b7d8d52e81ce1d385c3590f3d (diff)
downloadbun-320ee6b6b78bb2b9752efff45e83167e532c0b9d.tar.gz
bun-320ee6b6b78bb2b9752efff45e83167e532c0b9d.tar.zst
bun-320ee6b6b78bb2b9752efff45e83167e532c0b9d.zip
import bun (#4055)
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src/js')
-rw-r--r--src/js/out/NativeModuleImpl.h1
-rw-r--r--src/js/out/ResolvedSourceTag.zig19
-rw-r--r--src/js/out/SyntheticModuleType.h19
3 files changed, 21 insertions, 18 deletions
diff --git a/src/js/out/NativeModuleImpl.h b/src/js/out/NativeModuleImpl.h
index f519e7d7d..5a6881b7f 100644
--- a/src/js/out/NativeModuleImpl.h
+++ b/src/js/out/NativeModuleImpl.h
@@ -1,3 +1,4 @@
+#include "../../bun.js/modules/BunObjectModule.h"
#include "../../bun.js/modules/BunJSCModule.h"
#include "../../bun.js/modules/NodeBufferModule.h"
#include "../../bun.js/modules/NodeConstantsModule.h"
diff --git a/src/js/out/ResolvedSourceTag.zig b/src/js/out/ResolvedSourceTag.zig
index f054d09d7..43dc24689 100644
--- a/src/js/out/ResolvedSourceTag.zig
+++ b/src/js/out/ResolvedSourceTag.zig
@@ -66,13 +66,14 @@ pub const ResolvedSourceTag = enum(u32) {
@"vercel_fetch" = 566,
@"ws" = 567,
// Native modules run through a different system using ESM registry.
- @"bun:jsc" = 1024,
- @"node:buffer" = 1025,
- @"node:constants" = 1026,
- @"node:module" = 1027,
- @"node:process" = 1028,
- @"node:string_decoder" = 1029,
- @"node:tty" = 1030,
- @"node:util/types" = 1031,
- @"utf-8-validate" = 1032,
+ @"bun" = 1024,
+ @"bun:jsc" = 1025,
+ @"node:buffer" = 1026,
+ @"node:constants" = 1027,
+ @"node:module" = 1028,
+ @"node:process" = 1029,
+ @"node:string_decoder" = 1030,
+ @"node:tty" = 1031,
+ @"node:util/types" = 1032,
+ @"utf-8-validate" = 1033,
};
diff --git a/src/js/out/SyntheticModuleType.h b/src/js/out/SyntheticModuleType.h
index 12ec073ad..26704a71d 100644
--- a/src/js/out/SyntheticModuleType.h
+++ b/src/js/out/SyntheticModuleType.h
@@ -69,14 +69,15 @@ enum SyntheticModuleType : uint32_t {
// Native modules run through the same system, but with different underlying initializers.
// They also have bit 10 set to differentiate them from JS builtins.
NativeModuleFlag = (1 << 10) | (1 << 9),
- BunJSC = 1024,
- NodeBuffer = 1025,
- NodeConstants = 1026,
- NodeModule = 1027,
- NodeProcess = 1028,
- NodeStringDecoder = 1029,
- NodeTTY = 1030,
- NodeUtilTypes = 1031,
- UTF8Validate = 1032,
+ BunObject = 1024,
+ BunJSC = 1025,
+ NodeBuffer = 1026,
+ NodeConstants = 1027,
+ NodeModule = 1028,
+ NodeProcess = 1029,
+ NodeStringDecoder = 1030,
+ NodeTTY = 1031,
+ NodeUtilTypes = 1032,
+ UTF8Validate = 1033,
};