Skip to content

Commit

Permalink
process: remove deprecated process.EventEmitter
Browse files Browse the repository at this point in the history
process.EventEmitter was deprecated for v6. This commit removes
it for v7.

Refs: #5049
PR-URL: #6862
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
cjihrig committed May 24, 2016
1 parent f0a07d9 commit 62b5442
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@

EventEmitter.call(process);

let eeWarned = false;
Object.defineProperty(process, 'EventEmitter', {
get() {
const internalUtil = NativeModule.require('internal/util');
eeWarned = internalUtil.printDeprecationMessage(
"process.EventEmitter is deprecated. Use require('events') instead.",
eeWarned
);
return EventEmitter;
}
});

setupProcessObject();

// do this good and early, since it handles errors.
Expand Down

0 comments on commit 62b5442

Please sign in to comment.