-path = require 'path'
+path = require 'path'
+timers = require 'timers'
Module = require 'module'
# Expose information of current process.
# Expose global variables.
global.require = require
global.module = module
+global.setImmediate = ->
+ process.activateUvLoop()
+ timers.setImmediate.apply this, arguments
+global.clearImmediate = timers.clearImmediate
# Set the __filename to the path of html file if it's file:// protocol.
if window.location.protocol is 'file:'