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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 10 10:04:04 PST 2010


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





--- Comment #6 from Yaar Schnitman <yaar at chromium.org>  2010-02-10 10:04:02 PST ---
Very funny indeed!

Would you want to pick up from here, I should I continue working on this?

See my comments below:

(In reply to comment #4)
> (From update of attachment 48457 [details])
> 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.

> JavaScript engine too, not just for V8. As you should.
True.

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]?

-- 
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