From 336a4b6ac2b4a8ee9a5c972f3d74bfff8eca13e6 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 27 Dec 2021 18:06:31 -0800 Subject: Prepare to run unit tests & remove some dead code (#92) * Remove some dead code * :skull: code * Fix the zig tests * [JS Printer] Print integers faster & less scientific notation on decimals * :skull: dead code * skip * Run all the unit tests --- src/javascript/jsc/javascript.zig | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/javascript/jsc/javascript.zig') diff --git a/src/javascript/jsc/javascript.zig b/src/javascript/jsc/javascript.zig index d233fddd5..a0efe4a54 100644 --- a/src/javascript/jsc/javascript.zig +++ b/src/javascript/jsc/javascript.zig @@ -721,11 +721,6 @@ pub const Performance = struct { }; const bun_file_import_path = "/node_modules.server.bun"; -pub const LazyClasses = [_]type{}; - -pub const Module = struct { - reload_pending: bool = false, -}; const FetchTasklet = Fetch.FetchTasklet; const TaggedPointerUnion = @import("../../tagged_pointer.zig").TaggedPointerUnion; @@ -738,14 +733,12 @@ pub const Task = TaggedPointerUnion(.{ // We can see that it's sort of like std.mem.Allocator but for JSGlobalContextRef, to support Automatic Reference Counting // Its unavailable on Linux pub const VirtualMachine = struct { - const RequireCacheType = std.AutoHashMap(u32, *Module); global: *JSGlobalObject, allocator: *std.mem.Allocator, node_modules: ?*NodeModuleBundle = null, bundler: Bundler, watcher: ?*http.Watcher = null, console: *ZigConsoleClient, - require_cache: RequireCacheType, log: *logger.Log, event_listeners: EventListenerMixin.Map, main: string = "", @@ -867,7 +860,6 @@ pub const VirtualMachine = struct { .global = undefined, .allocator = allocator, .entry_point = ServerEntryPoint{}, - .require_cache = RequireCacheType.init(allocator), .event_listeners = EventListenerMixin.Map.init(allocator), .bundler = bundler, .console = console, @@ -1871,10 +1863,6 @@ pub const VirtualMachine = struct { } }; -pub const Object = struct { - ref: js.jsObjectRef, -}; - const GetterFn = fn ( this: anytype, ctx: js.JSContextRef, @@ -2390,3 +2378,4 @@ pub const BuildError = struct { }; pub const JSPrivateDataTag = JSPrivateDataPtr.Tag; + -- cgit v1.2.3