Skip to content

Commit

Permalink
test for arity shows more bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 7, 2011
1 parent 3d5057a commit da698d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ Traverse.prototype.reduce = function (cb, init) {
};

Traverse.prototype.deepEqual = function (obj) {
if (arguments.length !== 1) {
throw new Error(
'deepEqual requires exactly one object to compare against'
);
}

var equal = true;
var node = obj;

Expand Down

0 comments on commit da698d6

Please sign in to comment.