Merge pull request #77 from Browsercore/update_jsruntime

Update jsruntime
This commit is contained in:
Francis Bouvier
2023-11-21 12:21:42 +01:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ fn execJS(
pub fn main() !void { pub fn main() !void {
// generate APIs // generate APIs
const apis = try jsruntime.compile(DOM.Interfaces); const apis = comptime jsruntime.compile(DOM.Interfaces);
// create v8 vm // create v8 vm
const vm = jsruntime.VM.init(); const vm = jsruntime.VM.init();

View File

@@ -33,7 +33,7 @@ fn execJS(
pub fn main() !void { pub fn main() !void {
// generate APIs // generate APIs
const apis = try jsruntime.compile(DOM.Interfaces); const apis = comptime jsruntime.compile(DOM.Interfaces);
// allocator // allocator
var gpa = std.heap.GeneralPurposeAllocator(.{}){}; var gpa = std.heap.GeneralPurposeAllocator(.{}){};

View File

@@ -66,7 +66,7 @@ const FileLoader = struct {
pub fn main() !void { pub fn main() !void {
// generate APIs // generate APIs
const apis = comptime try jsruntime.compile(DOM.Interfaces); const apis = comptime jsruntime.compile(DOM.Interfaces);
std.debug.print("Running WPT test suite\n", .{}); std.debug.print("Running WPT test suite\n", .{});

View File

@@ -67,7 +67,7 @@ test {
try generate.tests(); try generate.tests();
// generate APIs // generate APIs
const apis = try jsruntime.compile(DOM.Interfaces); const apis = comptime jsruntime.compile(DOM.Interfaces);
// create JS vm // create JS vm
const vm = jsruntime.VM.init(); const vm = jsruntime.VM.init();