node/doc/api
Rémi Berson 978e1524bb
timers: fix clearInterval to work with timers from setTimeout
According to HTML Living Standard, "either method [clearInterval or
clearTimeout] can be used to clear timers created by setTimeout() or
setInterval().".

The current implementation of clearTimeout is already able to destroy a
timer created by setInterval, but not the other way around.

PR-URL: https://github.com/nodejs/node/pull/19952
Refs: https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
2018-04-16 04:42:30 +02:00
..
_toc.md doc: add introduced_in metadata to _toc.md 2018-03-06 09:18:37 +01:00
addons.md doc: add missing type=misc top comments 2018-04-14 14:54:55 +03:00
all.md doc: prepare for v8/V8 linting in doc text 2017-11-22 08:24:46 -08:00
assert.md doc: improve assert documentation 2018-04-16 03:21:45 +02:00
async_hooks.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
buffer.md doc: include error code in buffer documentation 2018-04-14 11:32:09 -07:00
child_process.md doc: fix parameter type format 2018-04-11 22:19:22 -07:00
cli.md doc, src: sort + fill up cli options and env vars 2018-04-13 23:14:54 +03:00
cluster.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
console.md console: auto-detect color support by default 2018-04-12 23:23:57 +02:00
crypto.md doc: note that setAuthTag throws on invalid length 2018-04-14 10:50:52 -07:00
debugger.md src: add punctuation in --inspector doc url message 2018-04-10 01:28:02 +02:00
deprecations.md doc: move support for invalid GCM tags to EOL 2018-04-14 10:50:57 -07:00
dgram.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
dns.md doc: add and unify even more return values 2018-04-12 03:18:01 +03:00
documentation.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
domain.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
errors.md assert: detect faulty throws usage 2018-04-13 19:56:33 +02:00
esm.md doc: add missing type=misc top comments 2018-04-14 14:54:55 +03:00
events.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
fs.md doc: added ready events to fs/streams,net/socket 2018-04-12 15:23:55 +02:00
globals.md url: expose the WHATWG URL API globally 2018-01-31 16:00:51 +01:00
http2.md doc: close event does not take arguments 2018-04-14 12:08:39 -07:00
http.md doc: improve http.setHeader and getHeader typeinfo 2018-04-13 20:28:01 +02:00
https.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
index.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
inspector.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
intl.md doc: add missing type=misc top comments 2018-04-14 14:54:55 +03:00
modules.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
n-api.md doc: add missing type=misc top comments 2018-04-14 14:54:55 +03:00
net.md doc: add net socket write signature 2018-04-13 20:41:52 +02:00
os.md doc: specify definite Array types 2018-04-09 17:04:48 +03:00
path.md doc: fix various nits 2018-04-04 13:45:39 +03:00
perf_hooks.md doc: unify section structures 2018-04-15 02:37:50 +03:00
process.md process: add version constants and compare 2018-04-13 22:03:04 -07:00
punycode.md doc: add and unify even more return values 2018-04-12 03:18:01 +03:00
querystring.md doc,tools: formalize, unify, codify default values 2018-04-04 12:30:36 +03:00
readline.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
repl.md doc: add and unify even more return values 2018-04-12 03:18:01 +03:00
stream.md doc: unify format of iterables 2018-04-15 11:36:07 +03:00
string_decoder.md doc: unify section structures 2018-04-15 02:37:50 +03:00
synopsis.md doc: be more explicit in the sypnosis 2018-02-07 15:06:14 +01:00
timers.md timers: fix clearInterval to work with timers from setTimeout 2018-04-16 04:42:30 +02:00
tls.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00
tracing.md perf_hooks,trace_events: emit perf milestone trace events 2018-03-16 10:54:05 -07:00
tty.md doc,tools: formalize, unify, codify default values 2018-04-04 12:30:36 +03:00
url.md doc: unify format of iterables 2018-04-15 11:36:07 +03:00
util.md console: add color support 2018-04-12 23:23:56 +02:00
v8.md doc: add missing YAML keyword in v8.md metadata 2018-04-14 11:54:09 +03:00
vm.md doc: vm.runIn*Context can accept a string as options 2018-04-11 21:38:41 -07:00
zlib.md doc: add quotes for event names + fix similar nits 2018-04-11 21:42:38 -07:00