Permalink
Browse files

process: remove deprecated process.EventEmitter

process.EventEmitter was deprecated for v6. This commit removes
it for v7.

Refs: #5049
PR-URL: #6862
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
cjihrig committed May 18, 2016
1 parent f0a07d9 commit 62b544290a075fe38e233887a06c408ba25a1c71
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/internal/bootstrap_node.js
@@ -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.

0 comments on commit 62b5442

Please sign in to comment.