tc39 / tc39/test262

add missing tests for early errors for restricted names in strict/module code

Open
#897 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

coverage
Dominant language
JavaScript
Stars
2.8k
Forks
564
Avg merge
3d 7h
Merged PRs (30d)
10

Description

https://tc39.github.io/ecma262/#sec-identifiers-static-semantics-early-errors

We already have a few tests, but we are not covering this part properly.

Some current examples:

  • test/language/module-code/early-import-arguments.js
  • test/language/module-code/early-import-as-arguments.js
  • test/language/module-code/early-import-as-eval.js
  • test/language/module-code/early-import-eval.js
  • test/language/expressions/async-generators/early-errors-expression-yield-as-function-binding-identifier.js
  • test/language/expressions/generators/yield-as-generator-expression-binding-identifier.js

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked ECMAScript static-semantics section, then compare the existing tests in test/language/module-code/ and the listed generator and async-generator files. Identify restricted-name cases not covered by those examples, add corresponding early-error tests, and run the relevant Test262 language tests to confirm the cases are covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.