diff --git a/test/parallel/test-domain-crypto.js b/test/parallel/test-domain-crypto.js index e76e8d0879..4dd979dafe 100644 --- a/test/parallel/test-domain-crypto.js +++ b/test/parallel/test-domain-crypto.js @@ -6,8 +6,9 @@ try { return; } -// the missing var keyword is intentional -domain = require('domain'); +// Pollution of global is intentional as part of test. +// See https://github.com/nodejs/node/commit/d1eff9ab +global.domain = require('domain'); // should not throw a 'TypeError: undefined is not a function' exception crypto.randomBytes(8);