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 14a160a commit a27534eCopy full SHA for a27534e
doc/api/timers.md
@@ -264,7 +264,7 @@ const signal = ac.signal;
264
setImmediatePromise('foobar', { signal })
265
.then(console.log)
266
.catch((err) => {
267
- if (err.message === 'AbortError')
+ if (err.name === 'AbortError')
268
console.log('The immediate was aborted');
269
});
270
@@ -283,7 +283,7 @@ const signal = ac.signal;
283
setTimeoutPromise(1000, 'foobar', { signal })
284
285
286
287
console.log('The timeout was aborted');
288
289
0 commit comments