Correctly initialize Node environment in worker
This commit is contained in:
		
					parent
					
						
							
								b467c3939e
							
						
					
				
			
			
				commit
				
					
						bb5ad4ac05
					
				
			
		
					 3 changed files with 39 additions and 1 deletions
				
			
		|  | @ -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.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao