Skip to content
Permalink
Browse files

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

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 dad5c2c02df78b66f249fef982b0a84c9d7932f4
Showing with 5 additions and 0 deletions.
  1. +5 −0 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()`][]

0 comments on commit dad5c2c

Please sign in to comment.
You can’t perform that action at this time.