[webkit-dev] Question about Constructors in WebKit JS Bindings

Peter Kasting pkasting at google.com
Mon Jun 22 21:58:02 PDT 2009

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

> On Mon, Jun 22, 2009 at 7:04 PM, Maciej Stachowiak<mjs at 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.)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090622/ee72224e/attachment.html>

More information about the webkit-dev mailing list