mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
committed by
Anna Henningsen
parent
dcc82b37b6
commit
59257543c3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user