| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7db7a82 commit cc8fcc5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,8 +6,9 @@ try { | |||
| 6 | 6 | return; | |
| 7 | 7 | } | |
| 8 | 8 | ||
| 9 | - // the missing var keyword is intentional | ||
| 10 | - domain = require('domain'); | ||
| 9 | + // Pollution of global is intentional as part of test. | ||
| 10 | + // See https://github.com/nodejs/node/commit/d1eff9ab | ||
| 11 | + global.domain = require('domain'); | ||
| 11 | 12 | ||
| 12 | 13 | // should not throw a 'TypeError: undefined is not a function' exception | |
| 13 | 14 | crypto.randomBytes(8); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments