test: be explicit about polluting of `global`
authorRich Trott <rtrott@gmail.com>
Sat, 2 Apr 2016 05:39:35 +0000 (22:39 -0700)
committerMyles Borins <mborins@us.ibm.com>
Mon, 11 Apr 2016 16:55:01 +0000 (12:55 -0400)
commita7b3a7533ae5e60e1c4f4c47867c758b3020aa74
tree5db1c5c4958124671c72deac50cbb791dd78582e
parent56755de96eb4d02efa86ed6e88dd0aad158ca5b3
test: be explicit about polluting of `global`

There was a comment in `test-domain-crypto.js` indicating that the
pollution of the `global` object with a `domain` property was
intentional. Provide more information in the comment so someone may
easily determine why. Use `global.domain` rather than declaring `domain`
without the `var` keyword to more clearly signal that the pollution is
intentional.

PR-URL: https://github.com/nodejs/node/pull/6017
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
test/parallel/test-domain-crypto.js