From 1d408099b7cf8541a31e96d4ec444b24cbeef038 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 14 Apr 2016 20:51:04 -0700 Subject: [PATCH] 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 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell Reviewed-By: Evan Lucas Reviewed-By: Colin Ihrig --- lib/internal/process/promises.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/process/promises.js b/lib/internal/process/promises.js index 165bf3319ee7db..22f1959784be9a 100644 --- a/lib/internal/process/promises.js +++ b/lib/internal/process/promises.js @@ -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) {