Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test/parallel/test-timers-nan-duration-warning-promises.js
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
  • Loading branch information
benjamingr and legendecas authored Jun 28, 2024
commit 807405268741a6b58a9f4e7141d78f4b0ee00807
2 changes: 1 addition & 1 deletion test/parallel/test-timers-nan-duration-warning-promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ process.once('warning', common.mustCall((warning) => {
assert.strictEqual(warning.name, 'TimeoutNaNWarning');
}));

setTimeout(NaN).catch(common.mustNotCall());
setTimeout(NaN).then(common.mustCall(), common.mustNotCall());