Skip to content

Commit fd37d54

Browse files
ben-pageFishrock123
authored andcommitted
doc: added note warning about change to console.endTime()
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]>
1 parent 76c9ab5 commit fd37d54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/console.md

+5
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ console.timeEnd('100-elements');
230230
// prints 100-elements: 225.438ms
231231
```
232232

233+
*Note: As of Node.js v6.0.0, `console.timeEnd()` deletes the timer to avoid
234+
leaking it. On older versions, the timer persisted. This allowed
235+
`console.timeEnd()` to be called multiple times for the same label. This
236+
functionality was unintended and is no longer supported.*
237+
233238
### console.trace(message[, ...])
234239

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

0 commit comments

Comments
 (0)