3rd-Eden/node-hashring — Issue #4: error(Arguments list has wrong type) when call addServer
Author: bunnyyiu
Created: 2011-11-17 13:53:44+00:00
State: open

Is it should use Array.prototype.push.call instead of Array.prototype.apply?

usage:
hashring.addServer('127.0.0.1:8080');

error:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Function.prototype.apply: Arguments list has wrong type
at Function.APPLY_PREPARE (native)
at hashRing.addServer (/home/node/local/lib/node_modules/hashring/lib/hashring.js:201:24)