mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
Fix test call to jsruntime.loadEnv
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
@@ -40,7 +40,9 @@ test {
|
||||
const vm = jsruntime.VM.init();
|
||||
defer vm.deinit();
|
||||
|
||||
var alloc = jsruntime.bench_allocator(std.testing.allocator);
|
||||
var bench_alloc = jsruntime.bench_allocator(std.testing.allocator);
|
||||
var arena_alloc = std.heap.ArenaAllocator.init(bench_alloc.allocator());
|
||||
defer arena_alloc.deinit();
|
||||
|
||||
try jsruntime.loadEnv(alloc.allocator(), false, testsExecFn, apis);
|
||||
try jsruntime.loadEnv(&arena_alloc, testsExecFn, apis);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user