Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a precondition check for the args parameter.

  • Loading branch information...
commit bd667324ea256f2f513ff66a8be3b2696578b53e 1 parent 8fac80e
@MathieuTurcotte authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/function_call.js
View
1  lib/function_call.js
@@ -13,6 +13,7 @@ function FunctionCall(fn, args, callback) {
events.EventEmitter.call(this);
precond.checkIsFunction(fn, 'Expected fn to be a function.');
+ precond.checkIsArray(args, 'Expected args to be an array.');
precond.checkIsFunction(callback, 'Expected callback to be a function.');
this.function_ = fn;
Please sign in to comment.
Something went wrong with that request. Please try again.