Skip to content

Stop using extended attributes for constructors #636

@Ms2ger

Description

@Ms2ger

There has been some discussion about this in #485; I'm filing this to consider changing [Constructor] in particular, since nobody seemed to particularly object to it.

I'd like to propose the following syntax:

interface Foo {
  constructor(...);
};

Without further changes, I believe the only WebIDL-defined extended attributes that would potentially start applying are [Exposed], [SecureContext] and [Unforgeable]. It seems fine to allow [Exposed] and [SecureContext], but I would disallow [Unforgeable].

We should probably not allow constructors to be specified within mixins.

Please comment asap if you have thoughts on this.

CC @yuki3 @littledan @bzbarsky @tabatkins @domenic @annevk

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