Fix node_modules.jsb loading in JSC

Former-commit-id: 43366ce3634ca35629e1f8234df86206f6411910
This commit is contained in:
Jarred Sumner
2021-08-04 13:02:16 -07:00
parent bb00c519c3
commit 5ecf48a21d
2 changed files with 3 additions and 2 deletions

View File

@@ -303,7 +303,7 @@ pub const NodeModuleBundle = struct {
.bundle = container.bundle.?,
.fd = stream.handle,
// sorry you can't have 4 GB of node_modules
.code_end_pos = @truncate(u32, file_end) - @intCast(u32, jsbundle_prefix.len),
.code_end_pos = end - @intCast(u32, jsbundle_prefix.len),
.bytes = read_bytes,
.bytes_ptr = file_bytes,
.package_id_map = undefined,