[heycam/webidl] Return type on identifier-less named/indexed setter is pointless (#523)

https://drafts.css-houdini.org/css-typed-om-1/#unparsedvalue-objects has:

    setter CSSUnparsedSegment (unsigned long index, CSSUnparsedSegment val);

Technically, this is correct Web IDL.  But that `CSSUnparsedSegment` return type is completely pointless.  Since the operation has no name it cannot be invoked directly.  So the only way it's used is from https://heycam.github.io/webidl/#invoke-indexed-setter which never examines the return value.

We should probably either drop the return type entirely from the identifierless setter case or force it to always be "void".

@tabatkins 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/523

Received on Thursday, 15 February 2018 19:40:05 UTC