JS: Use correct inheritance for Server class. Fixes test suite in Node 0.10.x.

This commit is contained in:
Stefan Thomas
2013-05-13 11:32:23 +02:00
parent a1a661a024
commit e627daa410

View File

@@ -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);