Hello! At the moment, Array.prototype.push is (afaics) specified so that it leaks property accesses to Array.prototype, as can be seen in V8/Chrome:
> Object.prototype.__defineSetter__('0', function(val){console.log('GOT
> '+val)}); [].push('FOO')
< GOT FOO
< 1
I think that's bad. Luckily, Firefox doesn't implement it in a
spec-compliant way:
> Object.prototype.__defineSetter__('0', function(val){console.log('GOT
> '+val)}); [].push('FOO')
< 1
... and nobody seems to have noticed, so changing the spec shouldn't
break things for anyone. So, would it be possible to specify Firefox'
behavior and deprecate the currently specified one?
signature.asc
Description: Digital signature
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

