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>
This commit is contained in:
Ruben Bridgewater
2018-12-02 15:03:01 +01:00
committed by Anna Henningsen
parent dcc82b37b6
commit 59257543c3
26 changed files with 43 additions and 0 deletions

View File

@@ -150,6 +150,7 @@ function Agent(options) {
};
}
Object.setPrototypeOf(Agent.prototype, HttpAgent.prototype);
Object.setPrototypeOf(Agent, HttpAgent);
Agent.prototype.createConnection = createConnection;
Agent.prototype.getName = function getName(options) {