Add the 'app' built-in module.

This commit is contained in:
Cheng Zhao 2013-05-03 00:05:09 +08:00
parent d151d494bd
commit 66404b5f15
5 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,8 @@
binding = process.atomBinding 'app'
EventEmitter = require('events').EventEmitter
class App extends EventEmitter
quit: binding.quit
terminate: binding.terminate
module.exports = new App