TemporalHelpers.toPrimitiveObserver etc. are useful beyond testing Temporal

Open Beginner friendly
#5,190 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
testing

Research direction

The Temporal helpers live in harness/TemporalHelpers.js; read that file and grep the test suite for TemporalHelpers.toPrimitiveObserver to see which tests pull it in through their includes frontmatter. The issue says "etc.", so pin down the full set of helpers that belong in the new file, checking the linked #4551 discussion if needed. Create the new harness file, update the includes lists of the affected tests, and confirm the suite still passes under the test262 runner.

Written by the indexing model from the issue text.

Description

(originally posted by @ptomato in #4551)

we really need to move that into its own helper file

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.