Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/common.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/common.js b/test/common.js
index b451b455ea1..270115263e6 100644
--- a/test/common.js
+++ b/test/common.js
@@ -399,8 +399,7 @@ process.on('exit', function() {
if (!exports.globalCheck) return;
const leaked = leakedGlobals();
if (leaked.length > 0) {
- console.error('Unknown globals: %s', leaked);
- fail('Unknown global found');
+ fail(`Unexpected global(s) found: ${leaked.join(', ')}`);
}
});