From b54873dae3fb08d09df05ba403f239df2dcfde3a Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Mon, 10 Jun 2024 11:45:12 +0200 Subject: [PATCH 1/2] Reformat definitions from HRT --- source | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/source b/source index a0bb77d2094..77894e92a57 100644 --- a/source +++ b/source @@ -3397,20 +3397,18 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • fullscreen flag
  • -

    High Resolution Time provides the current high - resolution time, the relative high - resolution time, the unsafe shared - current time, the shared monotonic clock, - the unsafe moment, - the duration from, - the coarsen time - algorithm, and the DOMHighResTimeStamp - typedef. HRT

    +

    High Resolution Time provides the following features: HRT

    + + From 82725b721cd9f77ee5e57d812bf6396bad2ef370 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 16 Mar 2023 16:08:25 +0100 Subject: [PATCH 2/2] Add the HostSystemUTCEpochNanoseconds abstract operation --- source | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/source b/source index 77894e92a57..7a80f59d894 100644 --- a/source +++ b/source @@ -2937,6 +2937,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • automatic semicolon insertion
  • candidate execution
  • The current realm
  • +
  • clamping a mathematical value
  • early error
  • forward progress
  • invariants of the essential internal methods
  • @@ -3102,6 +3103,15 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute + +

    User agents that support JavaScript must also implement the Temporal proposal. + The following terms are defined there, and used in this specification: JSTEMPORAL

    + +
    WebAssembly
    @@ -3407,6 +3417,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • unsafe moment
  • duration from
  • coarsen time
  • +
  • current wall time
  • +
  • Unix epoch
  • DOMHighResTimeStamp
  • @@ -108946,6 +108958,26 @@ dictionary PromiseRejectionEventInit : EventInit +
    HostSystemUTCEpochNanoseconds(global)
    + +

    The Temporal proposal contains an implementation-defined HostSystemUTCEpochNanoseconds abstract operation. + User agents must use the following implementation: JSTEMPORAL

    + +
      +
    1. Let settingsObject be global's relevant settings + object.

    2. + +
    3. Let time be settingsObject's current wall + time.

    4. + +
    5. Let ns be the number of nanoseconds from the Unix epoch to + time, rounded to the nearest integer.

    6. + +
    7. Return the result of clamping ns between + nsMinInstant and nsMaxInstant.

    8. +
    +
    Job-related host hooks

    The JavaScript specification defines Jobs to be scheduled and run later by the host, as well as @@ -143070,6 +143102,9 @@ INSERT INTERFACES HERE

    [JSON]
    The JavaScript Object Notation (JSON) Data Interchange Format, T. Bray. IETF.
    +
    [JSTEMPORAL]
    +
    Temporal. Ecma International.
    +
    [LONGTASKS]
    Long Tasks, D. Denicola, I. Grigorik, S. Panicker. W3C.