Adapt to js_env.start change

Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Francis Bouvier
2023-11-24 19:16:15 +01:00
parent 8f1afd7fa5
commit b4951ffa51
5 changed files with 5 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ fn execJS(
) !void { ) !void {
// start JS env // start JS env
js_env.start(apis); try js_env.start(alloc, apis);
defer js_env.stop(); defer js_env.stop();
// alias global as self and window // alias global as self and window

View File

@@ -16,7 +16,7 @@ fn execJS(
) !void { ) !void {
// start JS env // start JS env
js_env.start(apis); try js_env.start(alloc, apis);
defer js_env.stop(); defer js_env.stop();
// alias global as self and window // alias global as self and window

View File

@@ -175,7 +175,7 @@ fn runWPT(arena: *std.heap.ArenaAllocator, comptime apis: []jsruntime.API, f: []
try js_env.load(apis, &tpls); try js_env.load(apis, &tpls);
// start JS env // start JS env
js_env.start(apis); try js_env.start(alloc, apis);
defer js_env.stop(); defer js_env.stop();
// add document object // add document object

View File

@@ -23,7 +23,7 @@ fn testExecFn(
) !void { ) !void {
// start JS env // start JS env
js_env.start(apis); try js_env.start(alloc, apis);
defer js_env.stop(); defer js_env.stop();
// alias global as self and window // alias global as self and window