diff --git a/src/main.zig b/src/main.zig index ceaa395f..6e0f63c9 100644 --- a/src/main.zig +++ b/src/main.zig @@ -17,7 +17,7 @@ fn execJS( ) !void { // start JS env - js_env.start(apis); + try js_env.start(alloc, apis); defer js_env.stop(); // alias global as self and window diff --git a/src/main_shell.zig b/src/main_shell.zig index 62746dcc..c3c89171 100644 --- a/src/main_shell.zig +++ b/src/main_shell.zig @@ -16,7 +16,7 @@ fn execJS( ) !void { // start JS env - js_env.start(apis); + try js_env.start(alloc, apis); defer js_env.stop(); // alias global as self and window diff --git a/src/main_wpt.zig b/src/main_wpt.zig index acaddcae..fab10e25 100644 --- a/src/main_wpt.zig +++ b/src/main_wpt.zig @@ -175,7 +175,7 @@ fn runWPT(arena: *std.heap.ArenaAllocator, comptime apis: []jsruntime.API, f: [] try js_env.load(apis, &tpls); // start JS env - js_env.start(apis); + try js_env.start(alloc, apis); defer js_env.stop(); // add document object diff --git a/src/run_tests.zig b/src/run_tests.zig index ef84cc45..d65a520d 100644 --- a/src/run_tests.zig +++ b/src/run_tests.zig @@ -23,7 +23,7 @@ fn testExecFn( ) !void { // start JS env - js_env.start(apis); + try js_env.start(alloc, apis); defer js_env.stop(); // alias global as self and window diff --git a/vendor/jsruntime-lib b/vendor/jsruntime-lib index 4b0aee36..ed78daab 160000 --- a/vendor/jsruntime-lib +++ b/vendor/jsruntime-lib @@ -1 +1 @@ -Subproject commit 4b0aee368d8023060528b4cc3c2b3f757cf835a3 +Subproject commit ed78daab48b38eaff6b018f13392fcbc0078408b