From 53c605083d682c9c78eff8c9c4c4e37c0989cbf4 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 18 May 2016 13:31:01 -0400 Subject: [PATCH] process: remove deprecated process.EventEmitter process.EventEmitter was deprecated for v6. This commit removes it for v7. --- lib/internal/bootstrap_node.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index d0077df63c5980..d9c82fa54cbd6b 100644 --- a/lib/internal/bootstrap_node.js +++ b/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.