From b4f445183ca7a89191001234ed35de75b02bd99b Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Thu, 23 May 2024 15:09:53 +0200 Subject: [PATCH] wpt: add log.debug method in pure JS --- src/wpt/run.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wpt/run.zig b/src/wpt/run.zig index 4322ee40..1dc8797f 100644 --- a/src/wpt/run.zig +++ b/src/wpt/run.zig @@ -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) {