tc39 / tc39/test262

Test wanted: Unicode RegExp with more than two alternations

Open
#753 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

Code:

'πŸ€πŸ¦πŸ‹πŸ‹πŸ¦πŸ€'.match(/🍀|🍦|πŸ‹/gu);

// Or, escaped so the source code consists of ASCII code points only:
'\u{1F364}\u{1F366}\u{1F34B}\u{1F34B}\u{1F366}\u{1F364}'.match(/\u{1F364}|\u{1F366}/gu);

Expected result:

['🍀', '🍦', 'πŸ‹', 'πŸ‹', '🍦', '🍀']

// Or, in escaped form:
['\u{1F364}', '\u{1F366}', '\u{1F34B}', '\u{1F34B}', '\u{1F366}', '\u{1F364}']

Actual result in V8: null (issue 641091)

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

No repository file or test path is named. Start by running the provided JavaScript in a conforming test environment and inspect how test262 organizes Unicode RegExp tests. Add coverage for the three-alternation match and verify that the result contains all six emoji in order.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.