diff options
Diffstat (limited to 'benchmark/fixtures/simple-http-server.js')
-rw-r--r-- | benchmark/fixtures/simple-http-server.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/fixtures/simple-http-server.js b/benchmark/fixtures/simple-http-server.js index 013ac468f5..2b4f1ea956 100644 --- a/benchmark/fixtures/simple-http-server.js +++ b/benchmark/fixtures/simple-http-server.js @@ -10,8 +10,9 @@ const storedUnicode = Object.create(null); const useDomains = process.env.NODE_USE_DOMAINS; // Set up one global domain. +let domain; if (useDomains) { - var domain = require('domain'); + domain = require('domain'); const gdom = domain.create(); gdom.on('error', (er) => { console.error('Error on global domain', er); |