Bug 149714 - [Web IDL] 'length' property is wrong for variadic operations
Summary: [Web IDL] 'length' property is wrong for variadic operations
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://heycam.github.io/webidl/#dfn-...
Keywords: InRadar, WebExposed
Depends on:
Blocks:
 
Reported: 2015-10-01 10:54 PDT by Chris Dumez
Modified: 2015-10-06 10:20 PDT (History)
6 users (show)

See Also:


Attachments
Patch (17.36 KB, patch)
2015-10-01 11:35 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2015-10-01 10:54:32 PDT
'length' property is wrong for variadic operations:
https://heycam.github.io/webidl/#dfn-optional-argument

The final argument of a variadic operation is also considered to be an optional argument, so we should not account for it when computing the value of the 'length' property.
Comment 1 Chris Dumez 2015-10-01 11:35:00 PDT
Created attachment 262271 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2015-10-01 11:36:40 PDT
<rdar://problem/22936792>
Comment 3 WebKit Commit Bot 2015-10-06 10:20:54 PDT
Comment on attachment 262271 [details]
Patch

Clearing flags on attachment: 262271

Committed r190621: <http://trac.webkit.org/changeset/190621>
Comment 4 WebKit Commit Bot 2015-10-06 10:20:59 PDT
All reviewed patches have been landed.  Closing bug.