doc: console.trace takes a message format

Documentation claimed it accepted a single label argument, as time and
timeEnd do, which was incorrect.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
archived-io.js-v0.10
Sam Roberts 2014-07-19 14:34:41 -07:00 committed by Fedor Indutny
parent eba7aae107
commit 96b166f291
1 changed files with 3 additions and 2 deletions

View File

@ -62,9 +62,10 @@ Finish timer, record output. Example:
} }
console.timeEnd('100-elements'); 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], [...]) ## console.assert(value, [message], [...])