Cookbook example of locked-down Temporal object

Open
#603 3 comments 0 reactions 1 assignee View on GitHub

@ptomato is already working on this.

Since Feb 13, 2021.

Assessment

This issue has not been assessed yet.

Description

documentation

Follow up from #240, we need a cookbook example that does this:

Create an object that supports exactly the same interface as Temporal and is indistinguishable from it (even though side-door means such as Function.prototype.toString) except that it provides no mechanism by which code could use it to determine that the host environment is not executing within a date, time, time zone, and tzdata edition under the control of the creator, without costing the creator any capabilities provided by the native Temporal. This has use for secure environments like SES, but also for purely functional environments like Elm (cf. #103) and for testing.

This is probably best done after support for custom time zones and calendars are added to the polyfill.

Dominant language
HTML
Stars
3.7k
Forks
177
PR merge metrics
No merged PRs in 30d

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.

More from tc39/proposal-temporal

All issues in tc39/proposal-temporal

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.