Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-12-02 17:03:01 +0300
committerAnna Henningsen <anna@addaleax.net>2018-12-05 18:55:00 +0300
commit59257543c3db6f9ca01a91b75855934c2a913065 (patch)
treef2381b8db6f5d105a545d0452b4ec097c1810dba /lib/internal/child_process.js
parentdcc82b37b631d636e0fefc8272c357ec4a7d6df2 (diff)
lib: use ES6 class inheritance style
PR-URL: https://github.com/nodejs/node/pull/24755 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'lib/internal/child_process.js')
-rw-r--r--lib/internal/child_process.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js
index c8274fe10ee..cd942e65b59 100644
--- a/lib/internal/child_process.js
+++ b/lib/internal/child_process.js
@@ -266,6 +266,7 @@ function ChildProcess() {
};
}
Object.setPrototypeOf(ChildProcess.prototype, EventEmitter.prototype);
+Object.setPrototypeOf(ChildProcess, EventEmitter);
function flushStdio(subprocess) {