mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
Merge pull request #85 from Browsercore/jsruntime_changes
Adapt to js_env.start change
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
2
vendor/jsruntime-lib
vendored
2
vendor/jsruntime-lib
vendored
Submodule vendor/jsruntime-lib updated: 4b0aee368d...ed78daab48
Reference in New Issue
Block a user