Skip to content

Commit

Permalink
Add console.timeLog()
Browse files Browse the repository at this point in the history
Support for `console.timeLog()` was added in Node.js v10.7.0, and this wraps it like our other `console` methods. With this we expose every method from the current Console Standard.
  • Loading branch information
Zirro authored and domenic committed Feb 1, 2020
1 parent 50101ed commit ad43220
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/jsdom/browser/Window.js
Expand Up @@ -698,6 +698,7 @@ function Window(options) {
log: wrapConsoleMethod("log"),
table: wrapConsoleMethod("table"),
time: wrapConsoleMethod("time"),
timeLog: wrapConsoleMethod("timeLog"),
timeEnd: wrapConsoleMethod("timeEnd"),
trace: wrapConsoleMethod("trace"),
warn: wrapConsoleMethod("warn")
Expand Down
1 change: 1 addition & 0 deletions test/api/virtual-console.js
Expand Up @@ -20,6 +20,7 @@ const consoleMethods = [
"log",
"table",
"time",
"timeLog",
"timeEnd",
"trace",
"warn"
Expand Down
3 changes: 2 additions & 1 deletion test/web-platform-tests/to-upstream/console/methods.html
Expand Up @@ -27,9 +27,10 @@
"trace",
"warn",
"group",
"groupCollapsed", // https://github.com/whatwg/console/issues/64
"groupCollapsed",
"groupEnd",
"time",
"timeLog",
"timeEnd"
];

Expand Down

0 comments on commit ad43220

Please sign in to comment.