Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
doc: console.trace takes a message format
Browse files Browse the repository at this point in the history
Documentation claimed it accepted a single label argument, as time and
timeEnd do, which was incorrect.

Signed-off-by: Fedor Indutny <[email protected]>
  • Loading branch information
sam-github authored and indutny committed Jul 23, 2014
1 parent eba7aae commit 96b166f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/console.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ Finish timer, record output. Example:
}
console.timeEnd('100-elements');

## console.trace(label)
## console.trace(message, [...])

Print a stack trace to stderr of the current position.
Print to stderr `'Trace :'`, followed by the formatted message and stack trace
to the current position.

## console.assert(value, [message], [...])

Expand Down

0 comments on commit 96b166f

Please sign in to comment.