Merge pull request #85 from Browsercore/jsruntime_changes

Adapt to js_env.start change
This commit is contained in:
Francis Bouvier
2023-11-26 23:58:03 +01:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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