| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 883281b commit 23c98fa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ | |||
| 20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| 21 | 21 | ||
| 22 | 22 | 'use strict'; | |
| 23 | - require('../common'); | ||
| 23 | + const common = require('../common'); | ||
| 24 | 24 | const assert = require('assert'); | |
| 25 | 25 | const child_process = require('child_process'); | |
| 26 | 26 | const spawn = child_process.spawn; | |
@@ -43,7 +43,7 @@ if (process.argv[2] === 'fork') { | |||
| 43 | 43 | out += chunk; | |
| 44 | 44 | }); | |
| 45 | 45 | ||
| 46 | - child.on('exit', function() { | ||
| 46 | + child.on('exit', common.mustCall(function() { | ||
| 47 | 47 | assert.deepStrictEqual(JSON.parse(out), execArgv); | |
| 48 | - }); | ||
| 48 | + })); | ||
| 49 | 49 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments