[webkit-dev] ExecState::thisObject()

Adam Barth abarth at webkit.org
Mon Jul 13 15:44:43 PDT 2009


On Mon, Jul 13, 2009 at 3:36 PM, Geoffrey Garen<ggaren at apple.com> wrote:
> Sam and I just noticed that, to fully support this behavior, any host object
> that lazily constructs function properties using the functions in lookup.h
> must either
>
> (a) change in the same way as DOM objects must change
>
> or
>
> (b) eagerly construct its function properties with the correct prototype.
>
>
> Consider this case, which does not involve a DOM object:
>
> frames[0].Array.prototype.push.__proto__ == Array.prototype.push.__proto__

Yep...  My guess is that (a) is probably better, but you two are more
expert on why we use lazy construction.

Adam


More information about the webkit-dev mailing list