| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 793addf commit a6bc868
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,17 +2,17 @@ | |||
| 2 | 2 | // Simple tests of most basic domain functionality. | |
| 3 | 3 | ||
| 4 | 4 | require('../common'); | |
| 5 | - var assert = require('assert'); | ||
| 5 | + const assert = require('assert'); | ||
| 6 | 6 | ||
| 7 | 7 | // timeouts call the callback directly from cc, so need to make sure the | |
| 8 | 8 | // domain will be used regardless | |
| 9 | 9 | setTimeout(function() { | |
| 10 | - var domain = require('domain'); | ||
| 11 | - var d = domain.create(); | ||
| 10 | + const domain = require('domain'); | ||
| 11 | + const d = domain.create(); | ||
| 12 | 12 | d.run(function() { | |
| 13 | 13 | process.nextTick(function() { | |
| 14 | 14 | console.trace('in nexttick', process.domain === d); | |
| 15 | - assert.equal(process.domain, d); | ||
| 15 | + assert.strictEqual(process.domain, d); | ||
| 16 | 16 | }); | |
| 17 | 17 | }); | |
| 18 | - }); | ||
| 18 | + }, 1); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments