[webkit-dev] ExecState::thisObject()

Maciej Stachowiak mjs at apple.com
Fri Jul 10 18:04:04 PDT 2009


On Jul 10, 2009, at 5:55 PM, Adam Barth wrote:

> Eric and I spent some more time this afternoon looking at this.  We
> don't think the ExecState::thisValue() approach is going to work.  We
> implemented hacky version to experiment with, but the problem is with
> cases like this:
>
> document.body
>
> In evaluating this case, the "this" value isn't what we want because
> our computed "thisValue" is for the running function, not for the
> getter.

Is it definitely right for document.body to make a wrapper using  
prototypes from the document's host window, rather than from the  
accessing function's window? What do other browsers do?

  - Maciej



More information about the webkit-dev mailing list