We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f3ad1 commit c4183bbCopy full SHA for c4183bb
doc/api/timers.md
@@ -266,7 +266,7 @@ const signal = ac.signal;
266
setImmediatePromise('foobar', { signal })
267
.then(console.log)
268
.catch((err) => {
269
- if (err.message === 'AbortError')
+ if (err.name === 'AbortError')
270
console.log('The immediate was aborted');
271
});
272
@@ -285,7 +285,7 @@ const signal = ac.signal;
285
setTimeoutPromise(1000, 'foobar', { signal })
286
287
288
289
console.log('The timeout was aborted');
290
291
0 commit comments