[webkit-dev] Question about Constructors in WebKit JS Bindings
Adam Barth
abarth at webkit.org
Tue Jun 23 11:49:07 PDT 2009
On Tue, Jun 23, 2009 at 10:41 AM, Maciej Stachowiak<mjs at apple.com> wrote:
> On Jun 22, 2009, at 11:58 PM, Adam Barth wrote:
> It would be great to make it easier to write DOM constructors correctly.
> Perhaps documenting the pattern and/or introducing a common base class will
> work.
A common base class sounds like a good idea.
> I am not even sure all of these should have the same behavior,
> however. For instance, as I read the Web Workers spec, the lexical global
> object may be correct thing to use for the Worker constructor.
I looked at the spec briefly. What leads you to think that? It's
probably a bug in the spec.
> What I'm
> dubious of is whether we should store extra data on every DOM object (of
> which there are hundreds) to make it easier to write DOM constructors (of
> which there are 9).
No argument here. :)
Adam
More information about the webkit-dev
mailing list