Brendan Eich (2014-06-12T22:25:55.000Z)
Jeff Walden wrote:
> On 06/12/2014 03:05 PM, Allen Wirfs-Brock wrote:
>> >  I believe this behavior for for-in was added in ES5.  My recollection was that Doug Crockford pushed for it.  I don't recall if it was because it matched web reality or simply because he thought it was a good idea.
>
> It was added for web compatibility, to track what was originally a SpiderMonkey implementation bug, I believe.

Actually, if memory serves, IE JScript tolerated null and undefined on 
right of for-in. SpiderMonkey and my ur-JS implementation, Mocha, did 
not. Someone with the jwz nostalgia Netscape 2/3 browsers, please test.

I don't think bug-hiding precedent trumps bug-finding, personally. Allen?

/be
domenic at domenicdenicola.com (2014-06-17T20:50:16.724Z)
Jeff Walden wrote:
> It was added for web compatibility, to track what was originally a SpiderMonkey implementation bug, I believe.

Actually, if memory serves, IE JScript tolerated null and undefined on 
right of for-in. SpiderMonkey and my ur-JS implementation, Mocha, did 
not. Someone with the jwz nostalgia Netscape 2/3 browsers, please test.

I don't think bug-hiding precedent trumps bug-finding, personally. Allen?