wpt: add log.debug method in pure JS

This commit is contained in:
Pierre Tachoire
2024-05-23 15:09:53 +02:00
parent 38d48d7515
commit b4f445183c

View File

@@ -96,6 +96,9 @@ pub fn run(arena: *std.heap.ArenaAllocator, comptime dir: []const u8, f: []const
\\console.log = function () {
\\ console.push(...arguments);
\\};
\\console.debug = function () {
\\ console.push("debug", ...arguments);
\\};
;
res = try evalJS(js_env, alloc, init, "init");
if (!res.success) {