Perhaps @@unscopable shouldn't be a Set...

Boris Zbarsky bzbarsky at MIT.EDU
Wed Apr 30 12:17:52 PDT 2014

On 4/30/14, 2:49 PM, Axel Rauschmayer wrote:
> So Element.prototype is in the variable scope chain of event handlers? Wow. Is this documented somewhere?

You mean other than in the spec?  See 
step 10.

Note that it's not Element.prototype that's in the scope chain but the 
element itself.  It's just that the property lookup on the element will 
walk its proto chain.


More information about the es-discuss mailing list