Skip to content

setter syntax should probably be restricted to always return undefined #1516

@emilio

Description

@emilio

What is the issue with the Web IDL Standard?

See w3c/css-houdini-drafts#1142 for an example where return values are used, but probably shouldn't be.

I don't think there's any reasonable behavior if you were to specify a setter to return anything that wasn't the right hand side of the input. Right now implementations all ignore the return value.

Is there any reason something other than undefined is allowed in a setter operation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions