tc39 / tc39/test262

`desc` in .case files cannot start with `[` (even if quoted)

Open
#4,384 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

See https://github.com/tc39/test262/pull/4341.

When you have a .case file that contains desc: "[foo] bar" and a .template that has desc: baz, the generator will create a test that has desc: [foo] bar (baz) (note the missing quotes). This is invalid, as in Yaml that [foo] is parsed as an array.

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

Reproduce the issue with a .case file containing desc: "[foo] bar" and a .template containing desc: baz. Start by tracing the generator's handling of desc values, then verify that the generated test remains valid YAML and preserves quoting around the bracketed description.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.