From dad5c2c02df78b66f249fef982b0a84c9d7932f4 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. --- doc/api/console.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/api/console.md b/doc/api/console.md index 655e64c5ac9f01..3e1472e656ef33 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()`][]