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
#3562. Prior to that, you could
call console.endTime multiple times for the same label.

PR-URL: #6454
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Robert Lindstaedt <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Jeremy Whitlock <[email protected]>
  • Loading branch information
ben-page authored and Fishrock123 committed May 4, 2016
1 parent 76c9ab5 commit fd37d54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ console.timeEnd('100-elements');
// 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[, ...])

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

0 comments on commit fd37d54

Please sign in to comment.