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

Adam Barth abarth at webkit.org
Mon Jun 22 21:53:05 PDT 2009


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.

Adam


More information about the webkit-dev mailing list