import everything from "bun" where possible

This commit is contained in:
Jarred Sumner
2022-11-29 02:42:56 -08:00
parent 7b59d9d97c
commit b631ea7d72
161 changed files with 621 additions and 739 deletions

View File

@@ -4,7 +4,7 @@ const Environment = @import("./env.zig");
const string = @import("string_types.zig").string;
const stringZ = @import("string_types.zig").stringZ;
const CodePoint = @import("string_types.zig").CodePoint;
const bun = @import("global.zig");
const bun = @import("bun");
pub const joiner = @import("./string_joiner.zig");
const assert = std.debug.assert;
@@ -1598,7 +1598,7 @@ pub fn elementLengthLatin1IntoUTF8(comptime Type: type, latin1_: Type) usize {
return latin1_.len + total_non_ascii_count;
}
const JSC = @import("javascript_core");
const JSC = @import("bun").JSC;
pub fn copyLatin1IntoUTF16(comptime Buffer: type, buf_: Buffer, comptime Type: type, latin1_: Type) EncodeIntoResult {
var buf = buf_;