diff options
author | Andreas Madsen <amwebdk@gmail.com> | 2012-05-22 11:06:05 +0200 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-06-17 13:14:11 -0700 |
commit | 6d70a4ae162e0f364c45ac2ad6d008bf99aae47f (patch) | |
tree | a22b6645497b21223c866e6849ec91596b68c1d9 /src/node.js | |
parent | 3db2e034c44ccf6ef10aa8d648f8230f60272595 (diff) | |
download | node-6d70a4ae162e0f364c45ac2ad6d008bf99aae47f.tar.gz |
node: change the constructor name of process from EventEmitter to process
Diffstat (limited to 'src/node.js')
-rw-r--r-- | src/node.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/node.js b/src/node.js index 4571c7757..b2a0277a4 100644 --- a/src/node.js +++ b/src/node.js @@ -29,7 +29,13 @@ function startup() { var EventEmitter = NativeModule.require('events').EventEmitter; - process.__proto__ = EventEmitter.prototype; + + process.__proto__ = Object.create(EventEmitter.prototype, { + constructor: { + value: process.constructor + } + }); + process.EventEmitter = EventEmitter; // process.EventEmitter is deprecated startup.globalVariables(); |