Browse Source

process: remove deprecated process.EventEmitter

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

Refs: https://github.com/nodejs/node/pull/5049
PR-URL: https://github.com/nodejs/node/pull/6862
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
v7.x
cjihrig 9 years ago
parent
commit
62b544290a
  1. 12
      lib/internal/bootstrap_node.js

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.

Loading…
Cancel
Save