Skip to content

Language for testing the state of a production parameter is inconsistent #2568

@gibson042

Description

@gibson042

Description:
A handful of sections test the state of production parameters, but they do so inconsistently. We should pick one pattern and standardize on it.

https://tc39.es/ecma262/#sec-identifiers-static-semantics-early-errors and https://tc39.es/ecma262/#sec-patterns-static-semantics-early-errors-annexb

  • "if this production has a […] parameter"

https://tc39.es/ecma262/#sec-static-semantics-template-early-errors

  • "if the […] parameter was not set"

https://tc39.es/ecma262/#sec-async-function-definitions and https://tc39.es/ecma262/#sec-regular-expressions-patterns

  • "when the […] parameter is {present,absent}"
  • "with the […] parameter present on [symbol]"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions