Skip to content

Commit

Permalink
fix gh Flotype#157
Browse files Browse the repository at this point in the history
  • Loading branch information
ericz committed Dec 24, 2011
1 parent ee1e703 commit 5af1217
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/user.js
Expand Up @@ -81,6 +81,15 @@ exports.initialize = function (nowjs) {
theFunction = self.get(data.fqn);
}
var args = data.args;

if (typeof args.length !== 'number' ||
args.propertyIsEnumerable('length') ||
typeof args.splice !== 'function')
{
throw new Error('RFC with bad type');
return;
}

// Convert any remote function stubs into remote functions
var user;
for (var i = 0, ll = args.length; i < ll; i++) {
Expand Down

0 comments on commit 5af1217

Please sign in to comment.