mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +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) {
|
||||
return new Server(name, config.servers[name], verbose);
|
||||
|
||||
Reference in New Issue
Block a user