Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fd37d54

Browse filesBrowse 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 <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>
1 parent 76c9ab5 commit fd37d54
Copy full SHA for fd37d54

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/console.md‎

Copy file name to clipboardExpand all lines: doc/api/console.md
+5Lines changed: 5 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.