diff options
author | 2021-12-30 21:27:27 -0800 | |
---|---|---|
committer | 2021-12-30 21:27:27 -0800 | |
commit | b1c3fce49b5c761654f4a40612c192210dd5ac64 (patch) | |
tree | 12c4eb87b51aec8a26f35ca6a0b32b021f1b5cb9 /src | |
parent | e75c711c68896f5952793601f156c921c814caab (diff) | |
download | bun-b1c3fce49b5c761654f4a40612c192210dd5ac64.tar.gz bun-b1c3fce49b5c761654f4a40612c192210dd5ac64.tar.zst bun-b1c3fce49b5c761654f4a40612c192210dd5ac64.zip |
[internal] Move network_thread into http package
Diffstat (limited to 'src')
-rw-r--r-- | src/analytics/analytics_thread.zig | 2 | ||||
-rw-r--r-- | src/api/schema.zig | 2 | ||||
-rw-r--r-- | src/cli/create_command.zig | 2 | ||||
-rw-r--r-- | src/cli/upgrade_command.zig | 4 | ||||
-rw-r--r-- | src/http_client_async.zig | 2 | ||||
-rw-r--r-- | src/install/install.zig | 3 | ||||
-rw-r--r-- | src/javascript/jsc/bindings/bindings-generator.zig | 2 | ||||
-rw-r--r-- | src/javascript/jsc/bindings/header-gen.zig | 36 | ||||
-rw-r--r-- | src/javascript/jsc/bindings/headers-cpp.h | 2 | ||||
-rw-r--r-- | src/javascript/jsc/bindings/headers.h | 2 | ||||
-rw-r--r-- | src/javascript/jsc/bindings/headers.zig | 398 | ||||
-rw-r--r-- | src/javascript/jsc/webcore/response.zig | 2 |
12 files changed, 27 insertions, 430 deletions
diff --git a/src/analytics/analytics_thread.zig b/src/analytics/analytics_thread.zig index 894aa7626..c77ae4075 100644 --- a/src/analytics/analytics_thread.zig +++ b/src/analytics/analytics_thread.zig @@ -13,7 +13,7 @@ const C = _global.C; const sync = @import("../sync.zig"); const std = @import("std"); const HTTP = @import("http"); -const NetworkThread = @import("network_thread"); +const NetworkThread = HTTP.NetworkThread; const URL = @import("../query_string_map.zig").URL; const Fs = @import("../fs.zig"); const Analytics = @import("./analytics_schema.zig").analytics; diff --git a/src/api/schema.zig b/src/api/schema.zig index 2153ce0f3..2238ea3f0 100644 --- a/src/api/schema.zig +++ b/src/api/schema.zig @@ -161,7 +161,7 @@ pub const Reader = struct { else => {}, } }, - .Enum => { + .Enum => { return try this.readEnum(T); }, else => {}, diff --git a/src/cli/create_command.zig b/src/cli/create_command.zig index ecb8b5cac..a7d4a644c 100644 --- a/src/cli/create_command.zig +++ b/src/cli/create_command.zig @@ -30,7 +30,7 @@ const NodeModuleBundle = @import("../node_module_bundle.zig").NodeModuleBundle; const fs = @import("../fs.zig"); const URL = @import("../query_string_map.zig").URL; const HTTP = @import("http"); -const NetworkThread = @import("network_thread"); +const NetworkThread = HTTP.NetworkThread; const ParseJSON = @import("../json_parser.zig").ParseJSON; const Archive = @import("../libarchive/libarchive.zig").Archive; const Zlib = @import("../zlib.zig"); diff --git a/src/cli/upgrade_command.zig b/src/cli/upgrade_command.zig index 9c1aa67bc..5e54b5a34 100644 --- a/src/cli/upgrade_command.zig +++ b/src/cli/upgrade_command.zig @@ -17,8 +17,6 @@ const options = @import("../options.zig"); const js_parser = @import("../js_parser.zig"); const js_ast = @import("../js_ast.zig"); const linker = @import("../linker.zig"); -usingnamespace @import("../ast/base.zig"); -usingnamespace @import("../defines.zig"); const panicky = @import("../panic_handler.zig"); const allocators = @import("../allocators.zig"); const sync = @import("../sync.zig"); @@ -41,7 +39,7 @@ const clap = @import("clap"); const Lock = @import("../lock.zig").Lock; const Headers = @import("http").Headers; const CopyFile = @import("../copy_file.zig"); -const NetworkThread = @import("network_thread"); +const NetworkThread = HTTP.NetworkThread; pub var initialized_store = false; pub fn initializeStore() void { diff --git a/src/http_client_async.zig b/src/http_client_async.zig index 84c965afc..9c6b2230a 100644 --- a/src/http_client_async.zig +++ b/src/http_client_async.zig @@ -21,7 +21,7 @@ const StringBuilder = @import("./string_builder.zig"); const AsyncIO = @import("io"); const ThreadPool = @import("thread_pool"); const boring = @import("boringssl"); -const NetworkThread = @import("network_thread"); +pub const NetworkThread = @import("./network_thread.zig"); const SOCK = os.SOCK; diff --git a/src/install/install.zig b/src/install/install.zig index cb0f91df0..9b7ed617e 100644 --- a/src/install/install.zig +++ b/src/install/install.zig @@ -39,9 +39,10 @@ const Lock = @import("../lock.zig").Lock; var path_buf: [std.fs.MAX_PATH_BYTES]u8 = undefined; var path_buf2: [std.fs.MAX_PATH_BYTES]u8 = undefined; const URL = @import("../query_string_map.zig").URL; -const NetworkThread = @import("network_thread"); const AsyncHTTP = @import("http").AsyncHTTP; const HTTPChannel = @import("http").HTTPChannel; +const NetworkThread = @import("http").NetworkThread; + const Integrity = @import("./integrity.zig").Integrity; const clap = @import("clap"); const ExtractTarball = @import("./extract_tarball.zig"); diff --git a/src/javascript/jsc/bindings/bindings-generator.zig b/src/javascript/jsc/bindings/bindings-generator.zig index cdf87a0d1..4fbfd413a 100644 --- a/src/javascript/jsc/bindings/bindings-generator.zig +++ b/src/javascript/jsc/bindings/bindings-generator.zig @@ -17,8 +17,6 @@ pub const bindgen = true; pub fn main() anyerror!void { var allocator = std.heap.c_allocator; - var stdout = std.io.getStdOut(); - var writer = stdout.writer(); const src: std.builtin.SourceLocation = @src(); const paths = [_][]const u8{ std.fs.path.dirname(src.file) orelse return error.BadPath, "headers.h" }; const paths2 = [_][]const u8{ std.fs.path.dirname(src.file) orelse return error.BadPath, "headers-cpp.h" }; diff --git a/src/javascript/jsc/bindings/header-gen.zig b/src/javascript/jsc/bindings/header-gen.zig index 7c73dd3aa..bdf1778ad 100644 --- a/src/javascript/jsc/bindings/header-gen.zig +++ b/src/javascript/jsc/bindings/header-gen.zig @@ -13,7 +13,7 @@ const TypeNameMap = std.StringHashMap([]const u8); fn isCppObject(comptime Type: type) bool { return switch (@typeInfo(Type)) { .Struct, .Union, .Opaque => true, - .Enum => |Enum| @hasDecl(Type, "Type"), + .Enum => @hasDecl(Type, "Type"), else => false, }; } @@ -88,13 +88,13 @@ pub const C_Generator = struct { export_zig, }; - pub fn init(comptime src_file: []const u8, comptime Writer: type, file: Writer) Self { + pub fn init(comptime src_file: []const u8, comptime Writer: type, _: Writer) Self { var res = Self{ .filebase = src_file }; return res; } - pub fn deinit(self: *const Self) void { + pub fn deinit(_: *const Self) void { // self.file.writeAll("\n/**** </") catch unreachable; // self.file.writeAll(self.filebase) catch unreachable; // self.file.writeAll("> ****/\n\n") catch unreachable; @@ -105,7 +105,7 @@ pub const C_Generator = struct { comptime name: []const u8, comptime func: FnDecl, comptime meta: FnMeta, - comptime arg_names: []const []const u8, + comptime _: []const []const u8, comptime rewrite_return: bool, ) void { switch (comptime meta.calling_convention) { @@ -296,10 +296,10 @@ pub const C_Generator = struct { } pub fn gen_union( - self: *Self, - comptime name: []const u8, - comptime meta: UnionMeta, - comptime static_types: anytype, + _: *Self, + comptime _: []const u8, + comptime _: UnionMeta, + comptime _: anytype, ) void { @compileError("Not implemented"); // self.write("typedef union "); @@ -387,7 +387,6 @@ pub const C_Generator = struct { switch (meta) { .Pointer => |Pointer| { const child = Pointer.child; - const childmeta = @typeInfo(child); // if (childmeta == .Struct and childmeta.Struct.layout != .Extern) { // self.write("void"); // } else { @@ -407,7 +406,7 @@ pub const C_Generator = struct { } } - fn write(self: *Self, comptime str: []const u8) void { + fn write(_: *Self, comptime str: []const u8) void { _ = writer.write(str) catch {}; } }; @@ -478,9 +477,9 @@ pub fn HeaderGen(comptime first_import: type, comptime second_import: type, comp } pub fn startFile( - comptime self: Self, + comptime _: Self, comptime Type: type, - comptime prefix: []const u8, + comptime _: []const u8, file: anytype, other: std.fs.File, ) void { @@ -514,7 +513,7 @@ pub fn HeaderGen(comptime first_import: type, comptime second_import: type, comp } } - pub fn processStaticExport(comptime self: Self, file: anytype, gen: *C_Generator, comptime static_export: StaticExport) void { + pub fn processStaticExport(comptime _: Self, _: anytype, gen: *C_Generator, comptime static_export: StaticExport) void { const fn_meta = comptime @typeInfo(static_export.Type).Fn; gen.gen_func( comptime static_export.symbol_name, @@ -526,10 +525,10 @@ pub fn HeaderGen(comptime first_import: type, comptime second_import: type, comp } pub fn processDecl( - comptime self: Self, - file: anytype, + comptime _: Self, + _: anytype, gen: *C_Generator, - comptime Container: type, + comptime _: type, comptime Decl: std.builtin.TypeInfo.Declaration, comptime name: []const u8, comptime prefix: []const u8, @@ -538,7 +537,6 @@ pub fn HeaderGen(comptime first_import: type, comptime second_import: type, comp .Type => |Type| { switch (@typeInfo(Type)) { .Enum => |Enum| { - const layout = Enum.layout; gen.gen_enum( prefix ++ "__" ++ name, Enum, @@ -703,7 +701,7 @@ pub fn HeaderGen(comptime first_import: type, comptime second_import: type, comp } const ExternList = comptime brk: { const Sorder = struct { - pub fn lessThan(context: @This(), lhs: []const u8, rhs: []const u8) bool { + pub fn lessThan(_: @This(), lhs: []const u8, rhs: []const u8) bool { return std.ascii.orderIgnoreCase(lhs, rhs) == std.math.Order.lt; } }; @@ -736,7 +734,7 @@ pub fn HeaderGen(comptime first_import: type, comptime second_import: type, comp if (@hasDecl(Type, "Export")) { const ExportLIst = comptime brk: { const Sorder = struct { - pub fn lessThan(context: @This(), comptime lhs: StaticExport, comptime rhs: StaticExport) bool { + pub fn lessThan(_: @This(), comptime lhs: StaticExport, comptime rhs: StaticExport) bool { return std.ascii.orderIgnoreCase(lhs.symbol_name, rhs.symbol_name) == std.math.Order.lt; } }; diff --git a/src/javascript/jsc/bindings/headers-cpp.h b/src/javascript/jsc/bindings/headers-cpp.h index 8ea8496b8..3cef8a765 100644 --- a/src/javascript/jsc/bindings/headers-cpp.h +++ b/src/javascript/jsc/bindings/headers-cpp.h @@ -1,4 +1,4 @@ -//-- AUTOGENERATED FILE -- 1640830883 +//-- AUTOGENERATED FILE -- 1640928055 // clang-format off #pragma once diff --git a/src/javascript/jsc/bindings/headers.h b/src/javascript/jsc/bindings/headers.h index 108738586..382b5250b 100644 --- a/src/javascript/jsc/bindings/headers.h +++ b/src/javascript/jsc/bindings/headers.h @@ -1,5 +1,5 @@ // clang-format: off -//-- AUTOGENERATED FILE -- 1640830883 +//-- AUTOGENERATED FILE -- 1640928055 #pragma once #include <stddef.h> diff --git a/src/javascript/jsc/bindings/headers.zig b/src/javascript/jsc/bindings/headers.zig index 1f2a83fba..e69de29bb 100644 --- a/src/javascript/jsc/bindings/headers.zig +++ b/src/javascript/jsc/bindings/headers.zig @@ -1,398 +0,0 @@ -// GENERATED FILE - do not modify! -const bindings = @import("../../../jsc.zig"); - -pub const struct_JSC__StringPrototype = bindings.StringPrototype; -pub const struct_JSC__SetIteratorPrototype = bindings.SetIteratorPrototype; -pub const struct_JSC__RegExpPrototype = bindings.RegExpPrototype; -pub const struct_JSC__ObjectPrototype = bindings.ObjectPrototype; -pub const struct_JSC__MapIteratorPrototype = bindings.MapIteratorPrototype; -pub const struct_JSC__JSPromisePrototype = bindings.JSPromisePrototype; -pub const struct_JSC__IteratorPrototype = bindings.IteratorPrototype; -pub const struct_JSC__GeneratorPrototype = bindings.GeneratorPrototype; -pub const struct_JSC__GeneratorFunctionPrototype = bindings.GeneratorFunctionPrototype; -pub const struct_JSC__FunctionPrototype = bindings.FunctionPrototype; -pub const struct_JSC__BigIntPrototype = bindings.BigIntPrototype; -pub const struct_JSC__AsyncIteratorPrototype = bindings.AsyncIteratorPrototype; -pub const struct_JSC__AsyncGeneratorPrototype = bindings.AsyncGeneratorPrototype; -pub const struct_JSC__AsyncGeneratorFunctionPrototype = bindings.AsyncGeneratorFunctionPrototype; -pub const struct_JSC__AsyncFunctionPrototype = bindings.AsyncFunctionPrototype; -pub const struct_JSC__ArrayPrototype = bindings.ArrayPrototype; -pub const struct_JSC__ArrayIteratorPrototype = bindings.ArrayIteratorPrototype; -pub const bWTF__URL = bindings.URL; -pub const bWTF__StringView = bindings.StringView; -pub const bWTF__StringImpl = bindings.StringImpl; -pub const bWTF__String = bindings.String; -pub const bWTF__ExternalStringImpl = bindings.ExternalStringImpl; -pub const bJSC__VM = bindings.VM; -pub const bJSC__ThrowScope = bindings.ThrowScope; -pub const bJSC__SourceOrigin = bindings.SourceOrigin; -pub const bJSC__SourceCode = bindings.SourceCode; -pub const bJSC__PropertyName = bindings.PropertyName; -pub const bJSC__JSString = bindings.JSString; -pub const bJSC__JSPromise = bindings.JSPromise; -pub const bJSC__JSObject = bindings.JSObject; -pub const bJSC__JSModuleRecord = bindings.JSModuleRecord; -pub const bJSC__JSModuleLoader = bindings.JSModuleLoader; -pub const bJSC__JSLock = bindings.JSLock; -pub const bJSC__JSInternalPromise = bindings.JSInternalPromise; -pub const bJSC__JSGlobalObject = bindings.JSGlobalObject; -pub const bJSC__JSFunction = bindings.JSFunction; -pub const bJSC__JSCell = bindings.JSCell; -pub const bJSC__Identifier = bindings.Identifier; -pub const bJSC__Exception = bindings.Exception; -pub const bJSC__CatchScope = bindings.CatchScope; -pub const bJSC__CallFrame = bindings.CallFrame; -pub const bInspector__ScriptArguments = bindings.ScriptArguments; -pub const JSC__JSValue = bindings.JSValue; - -// Inlined types -pub const ZigString = bindings.ZigString; -pub const ZigException = bindings.ZigException; -pub const ResolvedSource = bindings.ResolvedSource; -pub const ZigStackTrace = bindings.ZigStackTrace; -pub const ReturnableException = bindings.ReturnableException; -const JSClassRef = bindings.C.JSClassRef; -// GENERATED CODE - DO NOT MODIFY BY HAND - -pub const ptrdiff_t = c_long; -pub const wchar_t = c_int; -pub const __uint16_t = c_ushort; -pub const __int32_t = c_int; -pub const __uint32_t = c_uint; -pub const __int64_t = c_longlong; -pub const __uint64_t = c_ulonglong; -pub const __mbstate_t = extern union { - __mbstate8: [128]u8, - _mbstateL: c_longlong, -}; - -pub const JSC__RegExpPrototype = struct_JSC__RegExpPrototype; - -pub const JSC__GeneratorPrototype = struct_JSC__GeneratorPrototype; - -pub const JSC__ArrayIteratorPrototype = struct_JSC__ArrayIteratorPrototype; - -pub const JSC__StringPrototype = struct_JSC__StringPrototype; -pub const WTF__StringView = bWTF__StringView; - -pub const JSC__JSPromisePrototype = struct_JSC__JSPromisePrototype; -pub const JSC__CatchScope = bJSC__CatchScope; -pub const JSC__ThrowScope = bJSC__ThrowScope; -pub const JSC__PropertyName = bJSC__PropertyName; -pub const JSC__JSObject = bJSC__JSObject; -pub const WTF__ExternalStringImpl = bWTF__ExternalStringImpl; - -pub const JSC__AsyncIteratorPrototype = struct_JSC__AsyncIteratorPrototype; -pub const WTF__StringImpl = bWTF__StringImpl; -pub const JSC__JSLock = bJSC__JSLock; -pub const JSC__JSModuleLoader = bJSC__JSModuleLoader; -pub const JSC__VM = bJSC__VM; - -pub const JSC__AsyncGeneratorPrototype = struct_JSC__AsyncGeneratorPrototype; - -pub const JSC__AsyncGeneratorFunctionPrototype = struct_JSC__AsyncGeneratorFunctionPrototype; -pub const JSC__JSGlobalObject = bJSC__JSGlobalObject; -pub const JSC__JSFunction = bJSC__JSFunction; - -pub const JSC__ArrayPrototype = struct_JSC__ArrayPrototype; - -pub const JSC__AsyncFunctionPrototype = struct_JSC__AsyncFunctionPrototype; -pub const JSC__Identifier = bJSC__Identifier; -pub const JSC__JSPromise = bJSC__JSPromise; - -pub const JSC__SetIteratorPrototype = struct_JSC__SetIteratorPrototype; -pub const JSC__SourceCode = bJSC__SourceCode; -pub const JSC__JSCell = bJSC__JSCell; - -pub const JSC__BigIntPrototype = struct_JSC__BigIntPrototype; - -pub const JSC__GeneratorFunctionPrototype = struct_JSC__GeneratorFunctionPrototype; -pub const JSC__SourceOrigin = bJSC__SourceOrigin; -pub const JSC__JSModuleRecord = bJSC__JSModuleRecord; -pub const WTF__String = bWTF__String; -pub const WTF__URL = bWTF__URL; - -pub const JSC__IteratorPrototype = struct_JSC__IteratorPrototype; -pub const JSC__JSInternalPromise = bJSC__JSInternalPromise; - -pub const JSC__FunctionPrototype = struct_JSC__FunctionPrototype; -pub const Inspector__ScriptArguments = bInspector__ScriptArguments; -pub const JSC__Exception = bJSC__Exception; -pub const JSC__JSString = bJSC__JSString; - -pub const JSC__ObjectPrototype = struct_JSC__ObjectPrototype; -pub const JSC__CallFrame = bJSC__CallFrame; - -pub const JSC__MapIteratorPrototype = struct_JSC__MapIteratorPrototype; -pub extern fn JSC__JSObject__create(arg0: [*c]JSC__JSGlobalObject, arg1: usize, arg2: ?*anyopaque, ArgFn3: ?fn (?*anyopaque, [*c]JSC__JSObject, [*c]JSC__JSGlobalObject) callconv(.C) void) JSC__JSValue; -pub extern fn JSC__JSObject__getArrayLength(arg0: [*c]JSC__JSObject) usize; -pub extern fn JSC__JSObject__getDirect(arg0: [*c]JSC__JSObject, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]const ZigString) JSC__JSValue; -pub extern fn JSC__JSObject__getIndex(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, arg2: u32) JSC__JSValue; -pub extern fn JSC__JSObject__putDirect(arg0: [*c]JSC__JSObject, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]const ZigString, JSValue3: JSC__JSValue) void; -pub extern fn JSC__JSObject__putRecord(arg0: [*c]JSC__JSObject, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]ZigString, arg3: [*c]ZigString, arg4: usize) void; -pub extern fn ZigString__toErrorInstance(arg0: [*c]const ZigString, arg1: [*c]JSC__JSGlobalObject) JSC__JSValue; -pub extern fn ZigString__toValue(arg0: [*c]const ZigString, arg1: [*c]JSC__JSGlobalObject) JSC__JSValue; -pub extern fn ZigString__toValueGC(arg0: [*c]const ZigString, arg1: [*c]JSC__JSGlobalObject) JSC__JSValue; -pub extern fn JSC__JSCell__getObject(arg0: [*c]JSC__JSCell) [*c]JSC__JSObject; -pub extern fn JSC__JSCell__getString(arg0: [*c]JSC__JSCell, arg1: [*c]JSC__JSGlobalObject) bWTF__String; -pub extern fn JSC__JSCell__getType(arg0: [*c]JSC__JSCell) u8; -pub extern fn JSC__JSString__createFromOwnedString(arg0: [*c]JSC__VM, arg1: [*c]const WTF__String) [*c]JSC__JSString; -pub extern fn JSC__JSString__createFromString(arg0: [*c]JSC__VM, arg1: [*c]const WTF__String) [*c]JSC__JSString; -pub extern fn JSC__JSString__eql(arg0: [*c]const JSC__JSString, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]JSC__JSString) bool; -pub extern fn JSC__JSString__is8Bit(arg0: [*c]const JSC__JSString) bool; -pub extern fn JSC__JSString__length(arg0: [*c]const JSC__JSString) usize; -pub extern fn JSC__JSString__toObject(arg0: [*c]JSC__JSString, arg1: [*c]JSC__JSGlobalObject) [*c]JSC__JSObject; -pub extern fn JSC__JSString__value(arg0: [*c]JSC__JSString, arg1: [*c]JSC__JSGlobalObject) bWTF__String; -pub extern fn Inspector__ScriptArguments__argumentAt(arg0: [*c]Inspector__ScriptArguments, arg1: usize) JSC__JSValue; -pub extern fn Inspector__ScriptArguments__argumentCount(arg0: [*c]Inspector__ScriptArguments) usize; -pub extern fn Inspector__ScriptArguments__getFirstArgumentAsString(arg0: [*c]Inspector__ScriptArguments) bWTF__String; -pub extern fn Inspector__ScriptArguments__isEqual(arg0: [*c]Inspector__ScriptArguments, arg1: [*c]Inspector__ScriptArguments) bool; -pub extern fn Inspector__ScriptArguments__release(arg0: [*c]Inspector__ScriptArguments) void; -pub extern fn JSC__JSModuleLoader__checkSyntax(arg0: [*c]JSC__JSGlobalObject, arg1: [*c]const JSC__SourceCode, arg2: bool) bool; -pub extern fn JSC__JSModuleLoader__evaluate(arg0: [*c]JSC__JSGlobalObject, arg1: [*c]const u8, arg2: usize, arg3: [*c]const u8, arg4: usize, JSValue5: JSC__JSValue, arg6: [*c]JSC__JSValue) JSC__JSValue; -pub extern fn JSC__JSModuleLoader__importModule(arg0: [*c]JSC__JSGlobalObject, arg1: [*c]const JSC__Identifier) [*c]JSC__JSInternalPromise; -pub extern fn JSC__JSModuleLoader__linkAndEvaluateModule(arg0: [*c]JSC__JSGlobalObject, arg1: [*c]const JSC__Identifier) JSC__JSValue; -pub extern fn JSC__JSModuleLoader__loadAndEvaluateModule(arg0: [*c]JSC__JSGlobalObject, arg1: [*c]const ZigString) [*c]JSC__JSInternalPromise; -pub extern fn JSC__JSModuleLoader__loadAndEvaluateModuleEntryPoint(arg0: [*c]JSC__JSGlobalObject, arg1: [*c]const JSC__SourceCode) [*c]JSC__JSInternalPromise; -pub extern fn JSC__JSModuleRecord__sourceCode(arg0: [*c]JSC__JSModuleRecord) bJSC__SourceCode; -pub extern fn JSC__JSPromise__isHandled(arg0: [*c]const JSC__JSPromise, arg1: [*c]JSC__VM) bool; -pub extern fn JSC__JSPromise__reject(arg0: [*c]JSC__JSPromise, arg1: [*c]JSC__JSGlobalObject, JSValue2: JSC__JSValue) void; -pub extern fn JSC__JSPromise__rejectAsHandled(arg0: [*c]JSC__JSPromise, arg1: [*c]JSC__JSGlobalObject, JSValue2: JSC__JSValue) void; -pub extern fn JSC__JSPromise__rejectAsHandledException(arg0: [*c]JSC__JSPromise, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]JSC__Exception) void; -pub extern fn JSC__JSPromise__rejectedPromise(arg0: [*c]JSC__JSGlobalObject, JSValue1: JSC__JSValue) [*c]JSC__JSPromise; -pub extern fn JSC__JSPromise__rejectedPromiseValue(arg0: [*c]JSC__JSGlobalObject, JSValue1: JSC__JSValue) JSC__JSValue; -pub extern fn JSC__JSPromise__rejectWithCaughtException(arg0: [*c]JSC__JSPromise, arg1: [*c]JSC__JSGlobalObject, arg2: bJSC__ThrowScope) void; -pub extern fn JSC__JSPromise__resolve(arg0: [*c]JSC__JSPromise, arg1: [*c]JSC__JSGlobalObject, JSValue2: JSC__JSValue) void; -pub extern fn JSC__JSPromise__resolvedPromise(arg0: [*c]JSC__JSGlobalObject, JSValue1: JSC__JSValue) [*c]JSC__JSPromise; -pub extern fn JSC__JSPromise__resolvedPromiseValue(arg0: [*c]JSC__JSGlobalObject, JSValue1: JSC__JSValue) JSC__JSValue; -pub extern fn JSC__JSPromise__result(arg0: [*c]const JSC__JSPromise, arg1: [*c]JSC__VM) JSC__JSValue; -pub extern fn JSC__JSPromise__status(arg0: [*c]const JSC__JSPromise, arg1: [*c]JSC__VM) u32; -pub extern fn JSC__JSInternalPromise__create(arg0: [*c]JSC__JSGlobalObject) [*c]JSC__JSInternalPromise; -pub extern fn JSC__JSInternalPromise__isHandled(arg0: [*c]const JSC__JSInternalPromise, arg1: [*c]JSC__VM) bool; -pub extern fn JSC__JSInternalPromise__reject(arg0: [*c]JSC__JSInternalPromise, arg1: [*c]JSC__JSGlobalObject, JSValue2: JSC__JSValue) void; -pub extern fn JSC__JSInternalPromise__rejectAsHandled(arg0: [*c]JSC__JSInternalPromise, arg1: [*c]JSC__JSGlobalObject, JSValue2: JSC__JSValue) void; -pub extern fn JSC__JSInternalPromise__rejectAsHandledException(arg0: [*c]JSC__JSInternalPromise, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]JSC__Exception) void; -pub extern fn JSC__JSInternalPromise__rejectedPromise(arg0: [*c]JSC__JSGlobalObject, JSValue1: JSC__JSValue) [*c]JSC__JSInternalPromise; -pub extern fn JSC__JSInternalPromise__rejectWithCaughtException(arg0: [*c]JSC__JSInternalPromise, arg1: [*c]JSC__JSGlobalObject, arg2: bJSC__ThrowScope) void; -pub extern fn JSC__JSInternalPromise__resolve(arg0: [*c]JSC__JSInternalPromise, arg1: [*c]JSC__JSGlobalObject, JSValue2: JSC__JSValue) void; -pub extern fn JSC__JSInternalPromise__resolvedPromise(arg0: [*c]JSC__JSGlobalObject, JSValue1: JSC__JSValue) [*c]JSC__JSInternalPromise; -pub extern fn JSC__JSInternalPromise__result(arg0: [*c]const JSC__JSInternalPromise, arg1: [*c]JSC__VM) JSC__JSValue; -pub extern fn JSC__JSInternalPromise__status(arg0: [*c]const JSC__JSInternalPromise, arg1: [*c]JSC__VM) u32; -pub extern fn JSC__JSInternalPromise__then(arg0: [*c]JSC__JSInternalPromise, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]JSC__JSFunction, arg3: [*c]JSC__JSFunction) [*c]JSC__JSInternalPromise; -pub extern fn JSC__SourceOrigin__fromURL(arg0: [*c]const WTF__URL) bJSC__SourceOrigin; -pub extern fn JSC__SourceCode__fromString(arg0: [*c]JSC__SourceCode, arg1: [*c]const WTF__String, arg2: [*c]const JSC__SourceOrigin, arg3: [*c]WTF__String, SourceType4: u8) void; -pub extern fn JSC__JSFunction__calculatedDisplayName(arg0: [*c]JSC__JSFunction, arg1: [*c]JSC__VM) bWTF__String; -pub extern fn JSC__JSFunction__callWithArguments(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]JSC__JSValue, arg3: usize, arg4: *?*JSC__Exception, arg5: [*c]const u8) JSC__JSValue; -pub extern fn JSC__JSFunction__callWithArgumentsAndThis(JSValue0: JSC__JSValue, JSValue1: JSC__JSValue, arg2: [*c]JSC__JSGlobalObject, arg3: [*c]JSC__JSValue, arg4: usize, arg5: *?*JSC__Exception, arg6: [*c]const u8) JSC__JSValue; -pub extern fn JSC__JSFunction__callWithoutAnyArgumentsOrThis(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, arg2: *?*JSC__Exception, arg3: [*c]const u8) JSC__JSValue; -pub extern fn JSC__JSFunction__callWithThis(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, JSValue2: JSC__JSValue, arg3: *?*JSC__Exception, arg4: [*c]const u8) JSC__JSValue; -pub extern fn JSC__JSFunction__constructWithArguments(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]JSC__JSValue, arg3: usize, arg4: *?*JSC__Exception, arg5: [*c]const u8) JSC__JSValue; -pub extern fn JSC__JSFunction__constructWithArgumentsAndNewTarget(JSValue0: JSC__JSValue, JSValue1: JSC__JSValue, arg2: [*c]JSC__JSGlobalObject, arg3: [*c]JSC__JSValue, arg4: usize, arg5: *?*JSC__Exception, arg6: [*c]const u8) JSC__JSValue; -pub extern fn JSC__JSFunction__constructWithNewTarget(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, JSValue2: JSC__JSValue, arg3: *?*JSC__Exception, arg4: [*c]const u8) JSC__JSValue; -pub extern fn JSC__JSFunction__constructWithoutAnyArgumentsOrNewTarget(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, arg2: *?*JSC__Exception, arg3: [*c]const u8) JSC__JSValue; -pub extern fn JSC__JSFunction__createFromNative(arg0: [*c]JSC__JSGlobalObject, arg1: u16, arg2: [*c]const WTF__String, arg3: ?*anyopaque, ArgFn4: ?fn (?*anyopaque, [*c]JSC__JSGlobalObject, [*c]JSC__CallFrame) callconv(.C) JSC__JSValue) [*c]JSC__JSFunction; -pub extern fn JSC__JSFunction__displayName(arg0: [*c]JSC__JSFunction, arg1: [*c]JSC__VM) bWTF__String; -pub extern fn JSC__JSFunction__getName(arg0: [*c]JSC__JSFunction, arg1: [*c]JSC__VM) bWTF__String; -pub extern fn JSC__JSGlobalObject__arrayIteratorPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__ArrayIteratorPrototype; -pub extern fn JSC__JSGlobalObject__arrayPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__ArrayPrototype; -pub extern fn JSC__JSGlobalObject__asyncFunctionPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__AsyncFunctionPrototype; -pub extern fn JSC__JSGlobalObject__asyncGeneratorFunctionPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__AsyncGeneratorFunctionPrototype; -pub extern fn JSC__JSGlobalObject__asyncGeneratorPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__AsyncGeneratorPrototype; -pub extern fn JSC__JSGlobalObject__asyncIteratorPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__AsyncIteratorPrototype; -pub extern fn JSC__JSGlobalObject__bigIntPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__BigIntPrototype; -pub extern fn JSC__JSGlobalObject__booleanPrototype(arg0: [*c]JSC__JSGlobalObject) [*c]JSC__JSObject; -pub extern fn JSC__JSGlobalObject__createAggregateError(arg0: [*c]JSC__JSGlobalObject, arg1: [*c]*anyopaque, arg2: u16, arg3: [*c]const ZigString) JSC__JSValue; -pub extern fn JSC__JSGlobalObject__datePrototype(arg0: [*c]JSC__JSGlobalObject) [*c]JSC__JSObject; -pub extern fn JSC__JSGlobalObject__errorPrototype(arg0: [*c]JSC__JSGlobalObject) [*c]JSC__JSObject; -pub extern fn JSC__JSGlobalObject__functionPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__FunctionPrototype; -pub extern fn JSC__JSGlobalObject__generatorFunctionPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__GeneratorFunctionPrototype; -pub extern fn JSC__JSGlobalObject__generatorPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__GeneratorPrototype; -pub extern fn JSC__JSGlobalObject__iteratorPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__IteratorPrototype; -pub extern fn JSC__JSGlobalObject__jsSetPrototype(arg0: [*c]JSC__JSGlobalObject) [*c]JSC__JSObject; -pub extern fn JSC__JSGlobalObject__mapIteratorPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__MapIteratorPrototype; -pub extern fn JSC__JSGlobalObject__mapPrototype(arg0: [*c]JSC__JSGlobalObject) [*c]JSC__JSObject; -pub extern fn JSC__JSGlobalObject__numberPrototype(arg0: [*c]JSC__JSGlobalObject) [*c]JSC__JSObject; -pub extern fn JSC__JSGlobalObject__objectPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__ObjectPrototype; -pub extern fn JSC__JSGlobalObject__promisePrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__JSPromisePrototype; -pub extern fn JSC__JSGlobalObject__regExpPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__RegExpPrototype; -pub extern fn JSC__JSGlobalObject__setIteratorPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__SetIteratorPrototype; -pub extern fn JSC__JSGlobalObject__stringPrototype(arg0: [*c]JSC__JSGlobalObject) ?*JSC__StringPrototype; -pub extern fn JSC__JSGlobalObject__symbolPrototype(arg0: [*c]JSC__JSGlobalObject) [*c]JSC__JSObject; -pub extern fn JSC__JSGlobalObject__vm(arg0: [*c]JSC__JSGlobalObject) [*c]JSC__VM; -pub extern fn WTF__URL__encodedPassword(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__encodedUser(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__fileSystemPath(arg0: [*c]WTF__URL) bWTF__String; -pub extern fn WTF__URL__fragmentIdentifier(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__fragmentIdentifierWithLeadingNumberSign(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__fromFileSystemPath(arg0: [*c]WTF__URL, arg1: bWTF__StringView) void; -pub extern fn WTF__URL__fromString(arg0: bWTF__String, arg1: bWTF__String) bWTF__URL; -pub extern fn WTF__URL__host(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__hostAndPort(arg0: [*c]WTF__URL) bWTF__String; -pub extern fn WTF__URL__isEmpty(arg0: [*c]const WTF__URL) bool; -pub extern fn WTF__URL__isValid(arg0: [*c]const WTF__URL) bool; -pub extern fn WTF__URL__lastPathComponent(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__password(arg0: [*c]WTF__URL) bWTF__String; -pub extern fn WTF__URL__path(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__protocol(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__protocolHostAndPort(arg0: [*c]WTF__URL) bWTF__String; -pub extern fn WTF__URL__query(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__queryWithLeadingQuestionMark(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__setHost(arg0: [*c]WTF__URL, arg1: bWTF__StringView) void; -pub extern fn WTF__URL__setHostAndPort(arg0: [*c]WTF__URL, arg1: bWTF__StringView) void; -pub extern fn WTF__URL__setPassword(arg0: [*c]WTF__URL, arg1: bWTF__StringView) void; -pub extern fn WTF__URL__setPath(arg0: [*c]WTF__URL, arg1: bWTF__StringView) void; -pub extern fn WTF__URL__setProtocol(arg0: [*c]WTF__URL, arg1: bWTF__StringView) void; -pub extern fn WTF__URL__setQuery(arg0: [*c]WTF__URL, arg1: bWTF__StringView) void; -pub extern fn WTF__URL__setUser(arg0: [*c]WTF__URL, arg1: bWTF__StringView) void; -pub extern fn WTF__URL__stringWithoutFragmentIdentifier(arg0: [*c]WTF__URL) bWTF__String; -pub extern fn WTF__URL__stringWithoutQueryOrFragmentIdentifier(arg0: [*c]WTF__URL) bWTF__StringView; -pub extern fn WTF__URL__truncatedForUseAsBase(arg0: [*c]WTF__URL) bWTF__URL; -pub extern fn WTF__URL__user(arg0: [*c]WTF__URL) bWTF__String; -pub extern fn WTF__String__characters16(arg0: [*c]WTF__String) [*c]const u16; -pub extern fn WTF__String__characters8(arg0: [*c]WTF__String) [*c]const u8; -pub extern fn WTF__String__createFromExternalString(arg0: bWTF__ExternalStringImpl) bWTF__String; -pub extern fn WTF__String__createWithoutCopyingFromPtr(arg0: [*c]WTF__String, arg1: [*c]const u8, arg2: usize) void; -pub extern fn WTF__String__eqlSlice(arg0: [*c]WTF__String, arg1: [*c]const u8, arg2: usize) bool; -pub extern fn WTF__String__eqlString(arg0: [*c]WTF__String, arg1: [*c]const WTF__String) bool; -pub extern fn WTF__String__impl(arg0: [*c]WTF__String) [*c]const WTF__StringImpl; -pub extern fn WTF__String__is16Bit(arg0: [*c]WTF__String) bool; -pub extern fn WTF__String__is8Bit(arg0: [*c]WTF__String) bool; -pub extern fn WTF__String__isEmpty(arg0: [*c]WTF__String) bool; -pub extern fn WTF__String__isExternal(arg0: [*c]WTF__String) bool; -pub extern fn WTF__String__isStatic(arg0: [*c]WTF__String) bool; -pub extern fn WTF__String__length(arg0: [*c]WTF__String) usize; -pub extern fn JSC__JSValue__asCell(JSValue0: JSC__JSValue) [*c]JSC__JSCell; -pub extern fn JSC__JSValue__asNumber(JSValue0: JSC__JSValue) f64; -pub extern fn JSC__JSValue__asObject(JSValue0: JSC__JSValue) bJSC__JSObject; -pub extern fn JSC__JSValue__asString(JSValue0: JSC__JSValue) [*c]JSC__JSString; -pub extern fn JSC__JSValue__createEmptyObject(arg0: [*c]JSC__JSGlobalObject, arg1: usize) JSC__JSValue; -pub extern fn JSC__JSValue__createStringArray(arg0: [*c]JSC__JSGlobalObject, arg1: [*c]ZigString, arg2: usize) JSC__JSValue; -pub extern fn JSC__JSValue__eqlCell(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSCell) bool; -pub extern fn JSC__JSValue__eqlValue(JSValue0: JSC__JSValue, JSValue1: JSC__JSValue) bool; -pub extern fn JSC__JSValue__forEach(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, ArgFn2: ?fn ([*c]JSC__VM, [*c]JSC__JSGlobalObject, JSC__JSValue) callconv(.C) void) void; -pub extern fn JSC__JSValue__getClassName(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]ZigString) void; -pub extern fn JSC__JSValue__getErrorsProperty(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) JSC__JSValue; -pub extern fn JSC__JSValue__getLengthOfArray(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) u32; -pub extern fn JSC__JSValue__getNameProperty(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]ZigString) void; -pub extern fn JSC__JSValue__getPrototype(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) JSC__JSValue; -pub extern fn JSC__JSValue__isAggregateError(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) bool; -pub extern fn JSC__JSValue__isAnyInt(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isBigInt(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isBigInt32(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isBoolean(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isCallable(JSValue0: JSC__JSValue, arg1: [*c]JSC__VM) bool; -pub extern fn JSC__JSValue__isCell(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isClass(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) bool; -pub extern fn JSC__JSValue__isCustomGetterSetter(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isError(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isException(JSValue0: JSC__JSValue, arg1: [*c]JSC__VM) bool; -pub extern fn JSC__JSValue__isGetterSetter(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isHeapBigInt(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isInt32(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isInt32AsAnyInt(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isIterable(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) bool; -pub extern fn JSC__JSValue__isNull(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isNumber(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isObject(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isPrimitive(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isString(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isSymbol(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isUInt32AsAnyInt(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isUndefined(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__isUndefinedOrNull(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__jsBoolean(arg0: bool) JSC__JSValue; -pub extern fn JSC__JSValue__jsDoubleNumber(arg0: f64) JSC__JSValue; -pub extern fn JSC__JSValue__jsNull(...) JSC__JSValue; -pub extern fn JSC__JSValue__jsNumberFromChar(arg0: u8) JSC__JSValue; -pub extern fn JSC__JSValue__jsNumberFromDouble(arg0: f64) JSC__JSValue; -pub extern fn JSC__JSValue__jsNumberFromInt32(arg0: i32) JSC__JSValue; -pub extern fn JSC__JSValue__jsNumberFromInt64(arg0: i64) JSC__JSValue; -pub extern fn JSC__JSValue__jsNumberFromU16(arg0: u16) JSC__JSValue; -pub extern fn JSC__JSValue__jsNumberFromUint64(arg0: u64) JSC__JSValue; -pub extern fn JSC__JSValue__jsTDZValue(...) JSC__JSValue; -pub extern fn JSC__JSValue__jsUndefined(...) JSC__JSValue; -pub extern fn JSC__JSValue__putRecord(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]ZigString, arg3: [*c]ZigString, arg4: usize) void; -pub extern fn JSC__JSValue__toBoolean(JSValue0: JSC__JSValue) bool; -pub extern fn JSC__JSValue__toInt32(JSValue0: JSC__JSValue) i32; -pub extern fn JSC__JSValue__toObject(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) [*c]JSC__JSObject; -pub extern fn JSC__JSValue__toPropertyKey(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) bJSC__Identifier; -pub extern fn JSC__JSValue__toPropertyKeyValue(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) JSC__JSValue; -pub extern fn JSC__JSValue__toString(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) [*c]JSC__JSString; -pub extern fn JSC__JSValue__toStringOrNull(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) [*c]JSC__JSString; -pub extern fn JSC__JSValue__toWTFString(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject) bWTF__String; -pub extern fn JSC__JSValue__toZigException(JSValue0: JSC__JSValue, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]ZigException) void; -pub extern fn JSC__JSValue__toZigString(JSValue0: JSC__JSValue, arg1: [*c]ZigString, arg2: [*c]JSC__JSGlobalObject) void; -pub extern fn JSC__PropertyName__eqlToIdentifier(arg0: [*c]JSC__PropertyName, arg1: [*c]const JSC__Identifier) bool; -pub extern fn JSC__PropertyName__eqlToPropertyName(arg0: [*c]JSC__PropertyName, arg1: [*c]const JSC__PropertyName) bool; -pub extern fn JSC__PropertyName__publicName(arg0: [*c]JSC__PropertyName) [*c]const WTF__StringImpl; -pub extern fn JSC__PropertyName__uid(arg0: [*c]JSC__PropertyName) [*c]const WTF__StringImpl; -pub extern fn JSC__Exception__create(arg0: [*c]JSC__JSGlobalObject, arg1: [*c]JSC__JSObject, StackCaptureAction2: u8) [*c]JSC__Exception; -pub extern fn JSC__Exception__getStackTrace(arg0: [*c]JSC__Exception, arg1: [*c]ZigStackTrace) void; -pub extern fn JSC__Exception__value(arg0: [*c]JSC__Exception) JSC__JSValue; -pub extern fn JSC__VM__apiLock(arg0: [*c]JSC__VM) [*c]JSC__JSLock; -pub extern fn JSC__VM__create(HeapType0: u8) [*c]JSC__VM; -pub extern fn JSC__VM__deinit(arg0: [*c]JSC__VM, arg1: [*c]JSC__JSGlobalObject) void; -pub extern fn JSC__VM__deleteAllCode(arg0: [*c]JSC__VM, arg1: [*c]JSC__JSGlobalObject) void; -pub extern fn JSC__VM__drainMicrotasks(arg0: [*c]JSC__VM) void; -pub extern fn JSC__VM__executionForbidden(arg0: [*c]JSC__VM) bool; -pub extern fn JSC__VM__isEntered(arg0: [*c]JSC__VM) bool; -pub extern fn JSC__VM__isJITEnabled(...) bool; -pub extern fn JSC__VM__setExecutionForbidden(arg0: [*c]JSC__VM, arg1: bool) void; -pub extern fn JSC__VM__shrinkFootprint(arg0: [*c]JSC__VM) void; -pub extern fn JSC__VM__throwError(arg0: [*c]JSC__VM, arg1: [*c]JSC__JSGlobalObject, arg2: [*c]JSC__ThrowScope, arg3: [*c]const u8, arg4: usize) bool; -pub extern fn JSC__VM__whenIdle(arg0: [*c]JSC__VM, ArgFn1: ?fn (...) callconv(.C) void) void; -pub extern fn JSC__ThrowScope__clearException(arg0: [*c]JSC__ThrowScope) void; -pub extern fn JSC__ThrowScope__declare(arg0: [*c]JSC__VM, arg1: [*c]u8, arg2: [*c]u8, arg3: usize) bJSC__ThrowScope; -pub extern fn JSC__ThrowScope__exception(arg0: [*c]JSC__ThrowScope) [*c]JSC__Exception; -pub extern fn JSC__ThrowScope__release(arg0: [*c]JSC__ThrowScope) void; -pub extern fn JSC__CatchScope__clearException(arg0: [*c]JSC__CatchScope) void; -pub extern fn JSC__CatchScope__declare(arg0: [*c]JSC__VM, arg1: [*c]u8, arg2: [*c]u8, arg3: usize) bJSC__CatchScope; -pub extern fn JSC__CatchScope__exception(arg0: [*c]JSC__CatchScope) [*c]JSC__Exception; -pub extern fn JSC__CallFrame__argument(arg0: [*c]const JSC__CallFrame, arg1: u16) JSC__JSValue; -pub extern fn JSC__CallFrame__argumentsCount(arg0: [*c]const JSC__CallFrame) usize; -pub extern fn JSC__CallFrame__jsCallee(arg0: [*c]const JSC__CallFrame) [*c]JSC__JSObject; -pub extern fn JSC__CallFrame__newTarget(arg0: [*c]const JSC__CallFrame) JSC__JSValue; -pub extern fn JSC__CallFrame__setNewTarget(arg0: [*c]JSC__CallFrame, JSValue1: JSC__JSValue) JSC__JSValue; -pub extern fn JSC__CallFrame__setThisValue(arg0: [*c]JSC__CallFrame, JSValue1: JSC__JSValue) JSC__JSValue; -pub extern fn JSC__CallFrame__thisValue(arg0: [*c]const JSC__CallFrame) JSC__JSValue; -pub extern fn JSC__CallFrame__uncheckedArgument(arg0: [*c]const JSC__CallFrame, arg1: u16) JSC__JSValue; -pub extern fn JSC__Identifier__deinit(arg0: [*c]const JSC__Identifier) void; -pub extern fn JSC__Identifier__eqlIdent(arg0: [*c]const JSC__Identifier, arg1: [*c]const JSC__Identifier) bool; -pub extern fn JSC__Identifier__eqlStringImpl(arg0: [*c]const JSC__Identifier, arg1: [*c]const WTF__StringImpl) bool; -pub extern fn JSC__Identifier__eqlUTF8(arg0: [*c]const JSC__Identifier, arg1: [*c]const u8, arg2: usize) bool; -pub extern fn JSC__Identifier__fromSlice(arg0: [*c]JSC__VM, arg1: [*c]const u8, arg2: usize) bJSC__Identifier; -pub extern fn JSC__Identifier__fromString(arg0: [*c]JSC__VM, arg1: [*c]const WTF__String) bJSC__Identifier; -pub extern fn JSC__Identifier__isEmpty(arg0: [*c]const JSC__Identifier) bool; -pub extern fn JSC__Identifier__isNull(arg0: [*c]const JSC__Identifier) bool; -pub extern fn JSC__Identifier__isPrivateName(arg0: [*c]const JSC__Identifier) bool; -pub extern fn JSC__Identifier__isSymbol(arg0: [*c]const JSC__Identifier) bool; -pub extern fn JSC__Identifier__length(arg0: [*c]const JSC__Identifier) usize; -pub extern fn JSC__Identifier__neqlIdent(arg0: [*c]const JSC__Identifier, arg1: [*c]const JSC__Identifier) bool; -pub extern fn JSC__Identifier__neqlStringImpl(arg0: [*c]const JSC__Identifier, arg1: [*c]const WTF__StringImpl) bool; -pub extern fn JSC__Identifier__toString(arg0: [*c]const JSC__Identifier) bWTF__String; -pub extern fn WTF__StringImpl__characters16(arg0: [*c]const WTF__StringImpl) [*c]const u16; -pub extern fn WTF__StringImpl__characters8(arg0: [*c]const WTF__StringImpl) [*c]const u8; -pub extern fn WTF__StringImpl__is16Bit(arg0: [*c]const WTF__StringImpl) bool; -pub extern fn WTF__StringImpl__is8Bit(arg0: [*c]const WTF__StringImpl) bool; -pub extern fn WTF__StringImpl__isEmpty(arg0: [*c]const WTF__StringImpl) bool; -pub extern fn WTF__StringImpl__isExternal(arg0: [*c]const WTF__StringImpl) bool; -pub extern fn WTF__StringImpl__isStatic(arg0: [*c]const WTF__StringImpl) bool; -pub extern fn WTF__StringImpl__length(arg0: [*c]const WTF__StringImpl) usize; -pub extern fn WTF__ExternalStringImpl__characters16(arg0: [*c]const WTF__ExternalStringImpl) [*c]const u16; -pub extern fn WTF__ExternalStringImpl__characters8(arg0: [*c]const WTF__ExternalStringImpl) [*c]const u8; -pub extern fn WTF__ExternalStringImpl__create(arg0: [*c]const u8, arg1: usize, ArgFn2: ?fn (?*anyopaque, [*c]u8, usize) callconv(.C) void) bWTF__ExternalStringImpl; -pub extern fn WTF__ExternalStringImpl__is16Bit(arg0: [*c]const WTF__ExternalStringImpl) bool; -pub extern fn WTF__ExternalStringImpl__is8Bit(arg0: [*c]const WTF__ExternalStringImpl) bool; -pub extern fn WTF__ExternalStringImpl__isEmpty(arg0: [*c]const WTF__ExternalStringImpl) bool; -pub extern fn WTF__ExternalStringImpl__length(arg0: [*c]const WTF__ExternalStringImpl) usize; -pub extern fn WTF__StringView__characters16(arg0: [*c]const WTF__StringView) [*c]const u16; -pub extern fn WTF__StringView__characters8(arg0: [*c]const WTF__StringView) [*c]const u8; -pub extern fn WTF__StringView__from8Bit(arg0: [*c]WTF__StringView, arg1: [*c]const u8, arg2: usize) void; -pub extern fn WTF__StringView__is16Bit(arg0: [*c]const WTF__StringView) bool; -pub extern fn WTF__StringView__is8Bit(arg0: [*c]const WTF__StringView) bool; -pub extern fn WTF__StringView__isEmpty(arg0: [*c]const WTF__StringView) bool; -pub extern fn WTF__StringView__length(arg0: [*c]const WTF__StringView) usize; -pub extern fn Zig__GlobalObject__create(arg0: [*c]JSClassRef, arg1: i32, arg2: ?*anyopaque) [*c]JSC__JSGlobalObject; -pub extern fn Zig__GlobalObject__getModuleRegistryMap(arg0: [*c]JSC__JSGlobalObject) ?*anyopaque; -pub extern fn Zig__GlobalObject__resetModuleRegistryMap(arg0: [*c]JSC__JSGlobalObject, arg1: ?*anyopaque) bool; -pub extern fn ZigException__fromException(arg0: [*c]JSC__Exception) ZigException; diff --git a/src/javascript/jsc/webcore/response.zig b/src/javascript/jsc/webcore/response.zig index 84e5040bd..455c36e8a 100644 --- a/src/javascript/jsc/webcore/response.zig +++ b/src/javascript/jsc/webcore/response.zig @@ -4,7 +4,7 @@ const RequestContext = @import("../../../http.zig").RequestContext; const MimeType = @import("../../../http.zig").MimeType; const ZigURL = @import("../../../query_string_map.zig").URL; const HTTPClient = @import("http"); -const NetworkThread = @import("network_thread"); +const NetworkThread = HTTPClient.NetworkThread; const JSC = @import("../../../jsc.zig"); const js = JSC.C; |