Re: This binding and ES5 builtins

On 07/07/2011 01:17 PM, Jeff Walden wrote:
> Although I should note that people sometimes called __defineGetter__ and __defineSetter__ unqualified, so those methods do still coerce null/undefined this to a global object.

I should probably add that my recollection is that might have only been in "chrome" code in the implementation of Firefox itself, or in extensions written for it, so it's possible that could be changed as far as websites are concerned.  It didn't seem worth fighting through the narrow problem at the time for a non-standard method, when doing so might hold up fixing the standard methods which did have semantics requiring throwing for null/undefined this.

Jeff

Received on Thursday, 7 July 2011 20:30:29 UTC