RESOLVED FIXED 160475
Drop custom bindings code for HTMLOptionsCollection.remove()
https://bugs.webkit.org/show_bug.cgi?id=160475
Summary Drop custom bindings code for HTMLOptionsCollection.remove()
Chris Dumez
Reported 2016-08-02 16:07:34 PDT
Drop custom bindings code for HTMLOptionsCollection.remove() and use overloading instead.
Attachments
Patch (10.36 KB, patch)
2016-08-02 16:12 PDT, Chris Dumez
no flags
Patch (10.30 KB, patch)
2016-08-02 16:28 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2016-08-02 16:09:09 PDT
Generated code looks like so: EncodedJSValue JSC_HOST_CALL jsHTMLOptionsCollectionPrototypeFunctionRemove(ExecState* state) { size_t argsCount = std::min<size_t>(1, state->argumentCount()); if (argsCount == 1) { JSValue distinguishingArg = state->uncheckedArgument(0); if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits(JSHTMLOptionElement::info())) return jsHTMLOptionsCollectionPrototypeFunctionRemove2(state); if (distinguishingArg.isNumber()) return jsHTMLOptionsCollectionPrototypeFunctionRemove1(state); return jsHTMLOptionsCollectionPrototypeFunctionRemove1(state); } return argsCount < 1 ? throwVMError(state, createNotEnoughArgumentsError(state)) : throwVMTypeError(state); }
Chris Dumez
Comment 2 2016-08-02 16:12:04 PDT
Chris Dumez
Comment 3 2016-08-02 16:28:51 PDT
WebKit Commit Bot
Comment 4 2016-08-02 19:57:25 PDT
Comment on attachment 285158 [details] Patch Clearing flags on attachment: 285158 Committed r204063: <http://trac.webkit.org/changeset/204063>
WebKit Commit Bot
Comment 5 2016-08-02 19:57:30 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.