mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
Adapt to js_env.start change
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
2
vendor/jsruntime-lib
vendored
2
vendor/jsruntime-lib
vendored
Submodule vendor/jsruntime-lib updated: 4b0aee368d...ed78daab48
Reference in New Issue
Block a user