do more manual cleanup and specify globals

This commit is contained in:
Zeke Sikelianos 2016-03-28 14:00:41 -07:00 committed by Kevin Sawicki
parent f47fa25e39
commit c4b6cf4a8e
10 changed files with 21 additions and 8 deletions

View file

@ -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)
})

View file

@ -1 +1 @@
exports.aFunction = function () { return 1127; }
exports.aFunction = function () { return 1127 }

View file

@ -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' })
])
})