[Webkit-unassigned] [Bug 34782] Normalize custom ctors for Image, Option, Audio

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 12 11:57:18 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=34782





--- Comment #9 from Darin Adler <darin at apple.com>  2010-02-12 11:57:13 PST ---
(In reply to comment #6)
> Would you want to pick up from here, I should I continue working on this?

I’ll post my partly done patch so you can merge the two. I need the media part
of this for another bug fix I’m working on.

> > I chose to emphasize the fact that the create functions are
> > for use with JavaScript constructors by using the name createForJSConstructor
> > rather than just create for them. 
> That makes sense, but I want the create functions to follow the same naming
> conventions that already exist for XmlHttpRequest, Worker, etc.

One difference there is that those functions are only created from JavaScript.

> Once these ctors are normalized, we can refactor the code-generators to
> auto-generated the boiler-plate code around them. I'm thinking about
> introducing new IDL ext attr's: 'ConstructViaNew', and
> 'ConstructWith=Document|ScriptExecutionContext', which will help V8/JSC
> populate the create dispatch. Another thing that will need to be solved is V8
> not supporting [optional] parameters. Does JSC support [optional]?

I don't know.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list