From 541965ff4f75aef97f428e28d1fe82c0767060dc Mon Sep 17 00:00:00 2001 From: Ben Page Date: Thu, 28 Apr 2016 17:08:44 -0500 Subject: [PATCH] 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 Reviewed-By: Robert Lindstaedt Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Jeremy Whitlock --- doc/api/console.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/api/console.md b/doc/api/console.md index 655e64c5ac..3e1472e656 100644 --- a/doc/api/console.md +++ b/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()`][]