mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
process: fix incorrect usage of assert.fail()
The message argument for `assert.fail()` is the third argument, not the first. Correct minor misuse in internal module. PR-URL: https://github.com/nodejs/node/pull/6211 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
df9e6fbc89
commit
7fd98af95d
1 file changed
+1
-1
@@ -13,7 +13,7 @@ function setupPromises(scheduleMicrotasks) {
|
||||
else if (event === promiseRejectEvent.handled)
|
||||
rejectionHandled(promise);
|
||||
else
|
||||
require('assert').fail('unexpected PromiseRejectEvent');
|
||||
require('assert').fail(null, null, 'unexpected PromiseRejectEvent');
|
||||
});
|
||||
|
||||
function unhandledRejection(promise, reason) {
|
||||
|
||||
Reference in new issue
Block a user