Correctly initialize Node environment in worker

This commit is contained in:
Cheng Zhao 2017-03-08 18:58:54 +09:00
parent b467c3939e
commit bb5ad4ac05
3 changed files with 39 additions and 1 deletions

View file

@ -6,7 +6,7 @@ const Module = require('module')
const resolvePromise = Promise.resolve.bind(Promise)
// We modified the original process.argv to let node.js load the
// atom-renderer.js, we need to restore it here.
// init.js, we need to restore it here.
process.argv.splice(1, 1)
// Clear search paths.