add missing tests for early errors for restricted names in strict/module code
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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