Skip to content

Commit

Permalink
doc: added note warning about change to console.endTime()
Browse files Browse the repository at this point in the history
Unintended functionality was removed from console.endTime by
nodejs#3562. Prior to that, you could
call console.endTime multiple times for the same label.
  • Loading branch information
ben-page committed Apr 28, 2016
1 parent 296bfd2 commit dad5c2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/console.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ console.timeEnd('100-elements');
// prints 100-elements: 225.438ms // prints 100-elements: 225.438ms
``` ```


*Note: As of Node.js v6.0.0, `console.timeEnd()` deletes the timer to avoid
leaking it. On older versions, the timer persisted. This allowed
`console.timeEnd()` to be called multiple times for the same label. This
functionality was unintended and is no longer supported.*

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


Prints to `stderr` the string `'Trace :'`, followed by the [`util.format()`][] Prints to `stderr` the string `'Trace :'`, followed by the [`util.format()`][]
Expand Down

0 comments on commit dad5c2c

Please sign in to comment.