diff --git a/src/main.zig b/src/main.zig index 719b31ea..ceaa395f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -50,7 +50,7 @@ fn execJS( pub fn main() !void { // generate APIs - const apis = try jsruntime.compile(DOM.Interfaces); + const apis = comptime jsruntime.compile(DOM.Interfaces); // create v8 vm const vm = jsruntime.VM.init(); diff --git a/src/main_shell.zig b/src/main_shell.zig index 9283acf2..62746dcc 100644 --- a/src/main_shell.zig +++ b/src/main_shell.zig @@ -33,7 +33,7 @@ fn execJS( pub fn main() !void { // generate APIs - const apis = try jsruntime.compile(DOM.Interfaces); + const apis = comptime jsruntime.compile(DOM.Interfaces); // allocator var gpa = std.heap.GeneralPurposeAllocator(.{}){}; diff --git a/src/main_wpt.zig b/src/main_wpt.zig index 96c8ad42..acaddcae 100644 --- a/src/main_wpt.zig +++ b/src/main_wpt.zig @@ -66,7 +66,7 @@ const FileLoader = struct { pub fn main() !void { // generate APIs - const apis = comptime try jsruntime.compile(DOM.Interfaces); + const apis = comptime jsruntime.compile(DOM.Interfaces); std.debug.print("Running WPT test suite\n", .{}); diff --git a/src/run_tests.zig b/src/run_tests.zig index b5ad7159..ef84cc45 100644 --- a/src/run_tests.zig +++ b/src/run_tests.zig @@ -67,7 +67,7 @@ test { try generate.tests(); // generate APIs - const apis = try jsruntime.compile(DOM.Interfaces); + const apis = comptime jsruntime.compile(DOM.Interfaces); // create JS vm const vm = jsruntime.VM.init(); diff --git a/vendor/jsruntime-lib b/vendor/jsruntime-lib index c3a5fe93..9c7c10c0 160000 --- a/vendor/jsruntime-lib +++ b/vendor/jsruntime-lib @@ -1 +1 @@ -Subproject commit c3a5fe93c07a160f887258dd9b8bcbc638a76788 +Subproject commit 9c7c10c0b26ab8f50a4680e4564cd00877e94c7a