WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
149263
[WebIDL] Add support for default parameter values
https://bugs.webkit.org/show_bug.cgi?id=149263
Summary
[WebIDL] Add support for default parameter values
Chris Dumez
Reported
2015-09-17 09:44:28 PDT
Add support for default parameter values to our Web IDL parser / JS bindings generator. This will allow the bindings to convert undefined to the parameter's default value for optional parameters:
https://heycam.github.io/webidl/#dfn-optional-argument-default-value
Initially, this will be used for document.createNodeIterator() / document.createTreeWalker()'s whatToShow parameter:
https://dom.spec.whatwg.org/#document
WebKit currently converts undefined to 0 in this case, even though it should be OxFFFFFFFF.
Attachments
Patch
(23.75 KB, patch)
2015-09-17 10:01 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-09-17 09:45:07 PDT
rdar://problem/22545600
Chris Dumez
Comment 2
2015-09-17 10:01:14 PDT
Created
attachment 261394
[details]
Patch
WebKit Commit Bot
Comment 3
2015-09-17 18:48:38 PDT
Comment on
attachment 261394
[details]
Patch Clearing flags on attachment: 261394 Committed
r189957
: <
http://trac.webkit.org/changeset/189957
>
WebKit Commit Bot
Comment 4
2015-09-17 18:48:45 PDT
All reviewed patches have been landed. Closing bug.
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