|
7 | 7 | // be initialized. Either import this module lazily, or import the namespace |
8 | 8 | // object without destructuring and access its properties at the point of use. |
9 | 9 |
|
| 10 | +// This module exposes the following exports: |
| 11 | +// * `hasTemporal`, a boolean property indicating whether the Temporal builtin |
| 12 | +// is present during initialization. |
| 13 | +// * Typecheck methods for Temporal objects: `isTemporalDuration()`, |
| 14 | +// `isTemporalInstant()` etc. If `hasTemporal` is false, then these methods |
| 15 | +// will always return `false`. Note that these are much less performant than |
| 16 | +// the native typecheck methods in internal/util/types, and should not be |
| 17 | +// used in performance-critical paths. |
| 18 | +// If `hasTemporal` is true, then this module also exports the following, in |
| 19 | +// primordial style: |
| 20 | +// * Temporal constructors: `TemporalDuration`, `TemporalInstant` etc. |
| 21 | +// * Static methods on temporal constructors: `TemporalDurationCompare`, |
| 22 | +// `TemporalDurationFrom` etc. |
| 23 | +// * Temporal prototype properties, methods and getters: |
| 24 | +// `TemporalDurationPrototypeAbs`, `TemporalDurationPrototypeGetBlank` etc. |
| 25 | + |
10 | 26 | // TODO(Renegade334): Remove typecheck methods once available via V8 API. |
11 | 27 | // Replace with primordials if/when temporal_rs becomes a mandatory V8 |
12 | 28 | // build dependency and the harmony_temporal flag is removed. |
|
0 commit comments