On Tue, Jun 19, 2012 at 2:44 PM, mscdex <[email protected]> wrote:

> On Jun 19, 3:31 pm, Mark Volkmann <[email protected]> wrote:
> > Why does the second assert below fail?
>
> The reason is that deepEqual checks the number and values of
> Object.keys() for arrays. For [,5] there is only one key, '1.' For
> [undefined,5] there is two keys, '0' and '1.' Therefore the number of
> keys does not match, which causes the assert to fail.


Thanks! I understand the reason now, but it doesn't seem to me that we
should want it to work that way. Does anyone think this should be changed?

-- 
R. Mark Volkmann
Object Computing, Inc.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to