We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b960af commit 853d73bCopy full SHA for 853d73b
src/node.js
@@ -13,11 +13,12 @@
13
function startup() {
14
var EventEmitter = NativeModule.require('events');
15
16
- process.__proto__ = Object.create(EventEmitter.prototype, {
+ Object.setPrototypeOf(process, Object.create(EventEmitter.prototype, {
17
constructor: {
18
value: process.constructor
19
}
20
- });
+ }));
21
+
22
EventEmitter.call(process);
23
24
process.EventEmitter = EventEmitter; // process.EventEmitter is deprecated
0 commit comments