douglascrockford/JSCheck — pull request #13 by mlowicki (2012-06-06 19:45:54+00:00)
Title: Fix TypeError

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.