douglascrockford/JSCheck — pull request #14 by mlowicki (2012-06-06 19:50:40+00:00)
Title: Fix TypeError when specific function is passed as 2nd argument to 'objec...

TypeError is throw when as second parameter to 'object' method we pass sth like this:

function () { return null; }

or

function (i) { return i; } // generating sequence of numbers for object's properties

because 'length' property is read from value returned by:

resolve(value);

which is null/undefined in our case.