diff --git a/test/common.js b/test/common.js index e25088a6688bd4..5d77dc8954a881 100644 --- a/test/common.js +++ b/test/common.js @@ -345,6 +345,11 @@ if (global.Symbol) { knownGlobals.push(Symbol); } +function allowGlobals(...whitelist) { + knownGlobals = knownGlobals.concat(whitelist); +} +exports.allowGlobals = allowGlobals; + function leakedGlobals() { var leaked = [];