From 4338a93af92c205869f064a78adf22113bc890e1 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Wed, 11 Aug 2021 12:42:36 -0400 Subject: [PATCH] Editorial nits --- source | 96 +++++++++++++++++++++++++++------------------------------- 1 file changed, 44 insertions(+), 52 deletions(-) diff --git a/source b/source index fd6852e9f16..54d8e7c7707 100644 --- a/source +++ b/source @@ -2886,16 +2886,16 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute specification:

@@ -8454,7 +8454,7 @@ interface DOMStringList { ToString(value.[[Calendar]]).

  • If ! IsBuiltinCalendar(calendarIdentifier) is false, then throw - a "DataCloneError" DOMException

  • + a "DataCloneError" DOMException.

  • Set serialized to { [[Type]]: "Temporal.PlainDate", [[ISOYear]]: value.[[ISOYear]], [[ISOMonth]]: value.[[ISOMonth]], [[ISODay]]: @@ -8483,7 +8483,7 @@ interface DOMStringList { ToString(value.[[Calendar]]).

  • If ! IsBuiltinCalendar(calendarIdentifier) is false, then throw - a "DataCloneError" DOMException

  • + a "DataCloneError" DOMException.

  • Set serialized to { [[Type]]: "Temporal.PlainDateTime", [[ISOYear]]: value.[[ISOYear]], [[ISOMonth]]: value.[[ISOMonth]], [[ISODay]]: @@ -8504,13 +8504,13 @@ interface DOMStringList { ToString(value.[[TimeZone]]).

  • If ! IsValidTimeZoneName(timeZoneIdentifier) is false, then - throw a "DataCloneError" DOMException

  • + throw a "DataCloneError" DOMException.

  • Let calendarIdentifier be ? ToString(value.[[Calendar]]).

  • If ! IsBuiltinCalendar(calendarIdentifier) is false, then throw - a "DataCloneError" DOMException

  • + a "DataCloneError" DOMException.

  • Set serialized to { [[Type]]: "Temporal.ZonedDateTime", [[Nanoseconds]]: value.[[Nanoseconds]], [[TimeZone]]: timeZoneIdentifier, [[Calendar]]: @@ -8552,7 +8552,7 @@ interface DOMStringList { ToString(value.[[Calendar]]).

  • If ! IsBuiltinCalendar(calendarIdentifier) is false, then throw - a "DataCloneError" DOMException

  • + a "DataCloneError" DOMException.

  • Set serialized to { [[Type]]: "Temporal.PlainYearMonth", [[ISOYear]]: value.[[ISOYear]], [[ISOMonth]]: value.[[ISOMonth]], [[ISODay]]: @@ -8569,7 +8569,7 @@ interface DOMStringList { ToString(value.[[Calendar]]).

  • If ! IsBuiltinCalendar(calendarIdentifier) is false, then throw - a "DataCloneError" DOMException

  • + a "DataCloneError" DOMException.

  • Set serialized to { [[Type]]: "Temporal.PlainMonthDay", [[ISOYear]]: value.[[ISOYear]], [[ISOMonth]]: value.[[ISOMonth]], [[ISODay]]: @@ -8585,7 +8585,7 @@ interface DOMStringList {

  • Let calendarIdentifier be ? ToString(value).

  • If ! IsBuiltinCalendar(calendarIdentifier) is false, then throw - a "DataCloneError" DOMException

  • + a "DataCloneError" DOMException.

  • Set serialized to { [[Type]]: "Temporal.Calendar", [[Identifier]]: calendarIdentifier }.

  • @@ -8600,7 +8600,7 @@ interface DOMStringList {
  • Let timeZoneIdentifier be ? ToString(value).

  • If ! IsValidTimeZoneName(timeZoneIdentifier) is false, then - throw a "DataCloneError" DOMException

  • + throw a "DataCloneError" DOMException.

  • Set serialized to { [[Type]]: "Temporal.TimeZone", [[Identifier]]: timeZoneIdentifier }.

  • @@ -9023,9 +9023,8 @@ o.myself = o;
  • Let calendar be ! GetBuiltinCalendar(serialized.[[Calendar]]).

  • -
  • Set value to ! Construct(%Temporal.PlainDate%, « - serialized.[[ISOYear]], serialized.[[ISOMonth]], +

  • Set value to ! Construct(%Temporal.PlainDate%, + « serialized.[[ISOYear]], serialized.[[ISOMonth]], serialized.[[ISODay]], calendar »).

  • @@ -9034,9 +9033,8 @@ o.myself = o;

    Otherwise, if serialized.[[Type]] is "Temporal.PlainTime", then:

      -
    1. Set value to ! Construct(%Temporal.PlainTime%, « - serialized.[[ISOHour]], serialized.[[ISOMinute]], +

    2. Set value to ! Construct(%Temporal.PlainTime%, + « serialized.[[ISOHour]], serialized.[[ISOMinute]], serialized.[[ISOSecond]], serialized.[[ISOMillisecond]], serialized.[[ISOMicrosecond]], serialized.[[ISONanosecond]] »).

    3. @@ -9050,9 +9048,8 @@ o.myself = o;
    4. Let calendar be ! GetBuiltinCalendar(serialized.[[Calendar]]).

    5. -
    6. Set value to ! Construct(%Temporal.PlainDateTime%, « - serialized.[[ISOYear]], serialized.[[ISOMonth]], +

    7. Set value to ! Construct(%Temporal.PlainDateTime%, + « serialized.[[ISOYear]], serialized.[[ISOMonth]], serialized.[[ISODay]], serialized.[[ISOHour]], serialized.[[ISOMinute]], serialized.[[ISOSecond]], serialized.[[ISOMillisecond]], serialized.[[ISOMicrosecond]], @@ -9064,16 +9061,14 @@ o.myself = o;

      Otherwise, if serialized.[[Type]] is "Temporal.ZonedDateTime", then:

        -
      1. Let timeZone be ! Construct(%Temporal.TimeZone%, « - serialized.[[TimeZone]] »).

      2. +
      3. Let timeZone be ! Construct(%Temporal.TimeZone%, + « serialized.[[TimeZone]] »).

      4. Let calendar be ! GetBuiltinCalendar(serialized.[[Calendar]]).

      5. -
      6. Set value to ! Construct(%Temporal.ZonedDateTime%, « - serialized.[[Nanoseconds]], timeZone, calendar +

      7. Set value to ! Construct(%Temporal.ZonedDateTime%, + « serialized.[[Nanoseconds]], timeZone, calendar »).

    8. @@ -9082,13 +9077,13 @@ o.myself = o;

      Otherwise, if serialized.[[Type]] is "Temporal.Duration", then:

        -
      1. Set value to ! Construct(%Temporal.Duration%, « serialized.[[Years]], - serialized.[[Months]], serialized.[[Weeks]], - serialized.[[Days]], serialized.[[Hours]], - serialized.[[Minutes]], serialized.[[Seconds]], - serialized.[[Milliseconds]], serialized.[[Microseconds]], - serialized.[[Nanoseconds]] »).

      2. +
      3. Set value to ! Construct(%Temporal.Duration%, + « serialized.[[Years]], serialized.[[Months]], + serialized.[[Weeks]], serialized.[[Days]], + serialized.[[Hours]], serialized.[[Minutes]], + serialized.[[Seconds]], serialized.[[Milliseconds]], + serialized.[[Microseconds]], serialized.[[Nanoseconds]] + »).

      @@ -9096,9 +9091,8 @@ o.myself = o;

      Otherwise, if serialized.[[Type]] is "Temporal.Instant", then:

        -
      1. Set value to ! Construct(%Temporal.Instant%, « - serialized.[[Nanoseconds]] »).

      2. +
      3. Set value to ! Construct(%Temporal.Instant%, + « serialized.[[Nanoseconds]] »).

      @@ -9109,8 +9103,8 @@ o.myself = o;
    9. Let calendar be ! GetBuiltinCalendar(serialized.[[Calendar]]).

    10. -
    11. Set value to ! Construct(%Temporal.PlainYearMonth%, « +

    12. Set value to ! + Construct(%Temporal.PlainYearMonth%, « serialized.[[ISOYear]], serialized.[[ISOMonth]], calendar, serialized.[[ISODay]] »).

    @@ -9123,10 +9117,9 @@ o.myself = o;
  • Let calendar be ! GetBuiltinCalendar(serialized.[[Calendar]]).

  • -
  • Set value to ! Construct(%Temporal.PlainMonthDay%, « - serialized.[[ISOMonth]], serialized.[[ISODay]], calendar, - serialized.[[ISOYear]] »).

  • +
  • Set value to ! Construct(%Temporal.PlainMonthDay%, + « serialized.[[ISOMonth]], serialized.[[ISODay]], + calendar, serialized.[[ISOYear]] »).

  • @@ -9134,9 +9127,8 @@ o.myself = o;

    Otherwise, if serialized.[[Type]] is "Temporal.TimeZone", then:

      -
    1. Set value to ! Construct(%Temporal.TimeZone%, « - serialized.[[Identifier]] »).

    2. +
    3. Set value to ! Construct(%Temporal.TimeZone%, + « serialized.[[Identifier]] »).