Skip to content

Commit b4f4451

Browse files
committed
wpt: add log.debug method in pure JS
1 parent 38d48d7 commit b4f4451

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wpt/run.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ pub fn run(arena: *std.heap.ArenaAllocator, comptime dir: []const u8, f: []const
9696
\\console.log = function () {
9797
\\ console.push(...arguments);
9898
\\};
99+
\\console.debug = function () {
100+
\\ console.push("debug", ...arguments);
101+
\\};
99102
;
100103
res = try evalJS(js_env, alloc, init, "init");
101104
if (!res.success) {

0 commit comments

Comments
 (0)