On Mon, Jun 22, 2009 at 9:53 PM, Adam Barth <aba...@webkit.org> wrote:

> On Mon, Jun 22, 2009 at 7:04 PM, Maciej Stachowiak<m...@apple.com> wrote:
> > Your proposed alternative will have different behavior. It will use the
> > lexical global object of the calling JavaScript function, instead of the
> > global object originally associated with the Options constructor.
>
> Yes.  Almost everywhere you see this pattern it's incorrect.  We have
> this bug a lot.


To be clear, are you saying the original pattern, or the "simpler" one Drew
proposes is typically the incorrect one?  (I assume the latter.)

PK
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to