No more need of manually setting process as local variable

This commit is contained in:
Cheng Zhao 2015-09-22 14:30:54 +08:00
parent eccb5e7590
commit 42515c6f41
4 changed files with 8 additions and 12 deletions

View file

@ -1,8 +1,7 @@
process = global.process
fs = require 'fs'
path = require 'path'
timers = require 'timers'
Module = require 'module'
fs = require 'fs'
path = require 'path'
timers = require 'timers'
Module = require 'module'
process.atomBinding = (name) ->
try

View file

@ -1,4 +1,3 @@
process = global.process
ipc = require 'ipc'
v8Util = process.atomBinding 'v8_util'
CallbacksRegistry = require 'callbacks-registry'

View file

@ -1,8 +1,7 @@
process = global.process
events = require 'events'
path = require 'path'
url = require 'url'
Module = require 'module'
events = require 'events'
path = require 'path'
url = require 'url'
Module = require 'module'
# We modified the original process.argv to let node.js load the
# atom-renderer.js, we need to restore it here.

View file

@ -1,4 +1,3 @@
process = global.process
ipc = require 'ipc'
remote = require 'remote'