mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
JS: Use correct inheritance for Server class. Fixes test suite in Node 0.10.x.
This commit is contained in:
@@ -56,7 +56,7 @@ var Server = function (name, config, verbose) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Server.prototype = new EventEmitter;
|
util.inherits(Server, EventEmitter);
|
||||||
|
|
||||||
Server.from_config = function (name, verbose) {
|
Server.from_config = function (name, verbose) {
|
||||||
return new Server(name, config.servers[name], verbose);
|
return new Server(name, config.servers[name], verbose);
|
||||||
|
|||||||
Reference in New Issue
Block a user