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

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

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.

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.

Dominant language
JavaScript
Stars
2.9k
Forks
571
Avg merge
1d 22h
Merged PRs (30d)
13

Getting set up

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.

More from tc39/test262

All issues in tc39/test262

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.