refactor: replace var with const / let (#14866)
This commit is contained in:
parent
b42493e6e6
commit
c61db523c7
26 changed files with 195 additions and 201 deletions
2
spec/fixtures/module/fork_ping.js
vendored
2
spec/fixtures/module/fork_ping.js
vendored
|
@ -4,7 +4,7 @@ process.on('uncaughtException', function (error) {
|
|||
process.send(error.stack)
|
||||
})
|
||||
|
||||
var child = require('child_process').fork(path.join(__dirname, '/ping.js'))
|
||||
const child = require('child_process').fork(path.join(__dirname, '/ping.js'))
|
||||
process.on('message', function (msg) {
|
||||
child.send(msg)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue