Skip to content

parser: forbid readonly in parser instead of semantic #13883

@Boshen

Description

@Boshen

Looks like these two cases are semantic errors instead of syntax errors.

function foo(readonly parameter) {}

and

class Foo { method(readonly parameter) {} }

Can we fix?

Originally posted by @fisker in #11713

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