mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
wpt: add log.debug method in pure JS
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user