WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
27319
Need CustomConstructor attribute to reduce amount of copy/paste constructor code
https://bugs.webkit.org/show_bug.cgi?id=27319
Summary
Need CustomConstructor attribute to reduce amount of copy/paste constructor code
Eric Seidel (no email)
Reported
2009-07-15 15:23:29 PDT
Need CustomConstructor attribute to reduce amount of copy/paste constructor code A bunch of idls (like Worker, WebKitPoint, WebKitMatrix, XHR, etc. don't use GenerateConstructor because they want to have their own custom constructor function (which takes arguments). Need to fix these to use less boilerplate code.
Attachments
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2009-07-15 15:38:53 PDT
Turns out that we'd probably need: ConstructorNeedsGlobalObject as well, in order to replace a bunch of the existing custom constructors. The existing custom constructors would use: GenerateConstructor CanConstruct CustomConstructor ConstructorNeedsGlobalObject Perhaps there is a more succinct way to express all that. :)
Anne van Kesteren
Comment 2
2023-05-12 23:04:14 PDT
Web IDL has seen numerous improvements in the past decade+, including with regards to this.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug