News for hackers. Stuff that matters.
Re:Wat by lftl on Thursday January 26, 2012 @07:12PM (#3516608)
I don't even understand what the last node.js entry is. Is that an array with two objects?

Also, I'm on an old version of node, but my output matches jsc.

Re:Wat by esrauch on Thursday January 26, 2012 @07:24PM (#3516648)
The other reply is right, to clarify String({}) === "[object Object]"

I think the actual video was a little misleading, [] + {} == the string "[object Object]" not an object. The square brackets are just part of the tostring method and are unrelated to the square brackets of arrays.

Re:Wat by udp on Thursday January 26, 2012 @07:15PM (#3516620)
The `toString` of two Object-s concatenated, I think.