do more manual cleanup and specify globals
This commit is contained in:
parent
f47fa25e39
commit
c4b6cf4a8e
10 changed files with 21 additions and 8 deletions
4
spec/fixtures/module/fork_ping.js
vendored
4
spec/fixtures/module/fork_ping.js
vendored
|
@ -1,8 +1,10 @@
|
|||
const path = require('path')
|
||||
|
||||
process.on('uncaughtException', function (error) {
|
||||
process.send(error.stack)
|
||||
})
|
||||
|
||||
var child = require('child_process').fork(__dirname + '/ping.js')
|
||||
var child = require('child_process').fork(path.join(__dirname, '/ping.js'))
|
||||
process.on('message', function (msg) {
|
||||
child.send(msg)
|
||||
})
|
||||
|
|
2
spec/fixtures/module/function.js
vendored
2
spec/fixtures/module/function.js
vendored
|
@ -1 +1 @@
|
|||
exports.aFunction = function () { return 1127; }
|
||||
exports.aFunction = function () { return 1127 }
|
||||
|
|
2
spec/fixtures/module/locale-compare.js
vendored
2
spec/fixtures/module/locale-compare.js
vendored
|
@ -2,6 +2,6 @@ process.on('message', function () {
|
|||
process.send([
|
||||
'a'.localeCompare('a'),
|
||||
'ä'.localeCompare('z', 'de'),
|
||||
'ä'.localeCompare('a', 'sv', { sensitivity: 'base' }),
|
||||
'ä'.localeCompare('a', 'sv', { sensitivity: 'base' })
|
||||
])
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue