Browse Source

doc: added note warning about change to console.endTime()

Unintended functionality was removed from console.endTime by
https://github.com/nodejs/node/pull/3562. Prior to that, you could
call console.endTime multiple times for the same label.

PR-URL: https://github.com/nodejs/node/pull/6454
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Jeremy Whitlock <jwhitlock@apache.org>
process-exit-stdio-flushing
Ben Page 9 years ago
committed by James M Snell
parent
commit
541965ff4f
  1. 5
      doc/api/console.md

5
doc/api/console.md

@ -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()`][]

Loading…
Cancel
Save