From 1c722a815862c2f32601f5d4183cf7208d19dbc6 Mon Sep 17 00:00:00 2001 From: Frank Tang Date: Thu, 5 Aug 2021 15:06:20 -0700 Subject: [PATCH] fix comments --- .../Temporal/Calendar/prototype/dayOfWeek/plain-date-time.js | 1 - .../Temporal/Calendar/prototype/dayOfWeek/plain-date.js | 1 - .../built-ins/Temporal/Calendar/prototype/dayOfWeek/string.js | 1 - .../prototype/dayOfWeek/throw-range-error-ToTemporalDate.js | 1 - .../dayOfWeek/throw-type-error-RequireInternalSlot.js | 1 - .../Temporal/Calendar/prototype/dayOfYear/plain-date-time.js | 4 +--- .../Temporal/Calendar/prototype/dayOfYear/plain-date.js | 4 +--- .../built-ins/Temporal/Calendar/prototype/dayOfYear/string.js | 4 +--- .../prototype/dayOfYear/throw-range-error-ToTemporalDate.js | 1 - .../dayOfYear/throw-type-error-RequireInternalSlot.js | 1 - 10 files changed, 3 insertions(+), 16 deletions(-) diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/plain-date-time.js b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/plain-date-time.js index 0fc49779a9..bb966e09a2 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/plain-date-time.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/plain-date-time.js @@ -1,6 +1,5 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayofweek description: Temporal.Calendar.prototype.dayOfWeek will take Temporal.PlainDateTime objects diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/plain-date.js b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/plain-date.js index e63deb2955..a15508c7c5 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/plain-date.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/plain-date.js @@ -1,6 +1,5 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayofweek description: Temporal.Calendar.prototype.dayOfWeek will take Temporal.PlainDate objects diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/string.js b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/string.js index 57652820d0..567be1068f 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/string.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/string.js @@ -1,6 +1,5 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayofweek description: Temporal.Calendar.prototype.dayOfWeek will take ISO8601 string diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/throw-range-error-ToTemporalDate.js b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/throw-range-error-ToTemporalDate.js index d390dd7d76..6f5bac10e0 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/throw-range-error-ToTemporalDate.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/throw-range-error-ToTemporalDate.js @@ -1,6 +1,5 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayOfWeek description: Temporal.Calendar.prototype.dayOfWeek throws RangeError on diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/throw-type-error-RequireInternalSlot.js b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/throw-type-error-RequireInternalSlot.js index 3b0fc41f7d..786f662c13 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/throw-type-error-RequireInternalSlot.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfWeek/throw-type-error-RequireInternalSlot.js @@ -1,6 +1,5 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayOfWeek description: Temporal.Calendar.prototype.dayOfWeek throws TypeError diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/plain-date-time.js b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/plain-date-time.js index a811ba1e4e..129e3adc12 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/plain-date-time.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/plain-date-time.js @@ -1,11 +1,9 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayofyear description: Temporal.Calendar.prototype.dayOfYear will take PlainDateTime object and -return the day of year. - and return Array of the same content. + return the day of year. info: | 4. Let temporalDate be ? ToTemporalDate(temporalDateLike). 5. Return 𝔽(! ToISODayOfYear(temporalDate.[[ISOYear]], temporalDate.[[ISOMonth]], temporalDate.[[ISODay]])). diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/plain-date.js b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/plain-date.js index 51067063d5..d335f5c402 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/plain-date.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/plain-date.js @@ -1,11 +1,9 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayofyear description: Temporal.Calendar.prototype.dayOfYear will take PlainDate object and -return the day of year. - and return Array of the same content. + return the day of year. info: | 5. Return 𝔽(! ToISODayOfYear(temporalDate.[[ISOYear]], temporalDate.[[ISOMonth]], temporalDate.[[ISODay]])). features: [Temporal] diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/string.js b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/string.js index fac42af7e6..e17225c4e3 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/string.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/string.js @@ -1,11 +1,9 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayofyear description: Temporal.Calendar.prototype.dayOfYear will take ISO8601 string and -return the day of year. - and return Array of the same content. + return the day of year. info: | 4. Let temporalDate be ? ToTemporalDate(temporalDateLike). 5. Return 𝔽(! ToISODayOfYear(temporalDate.[[ISOYear]], temporalDate.[[ISOMonth]], temporalDate.[[ISODay]])). diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/throw-range-error-ToTemporalDate.js b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/throw-range-error-ToTemporalDate.js index ac8b2a9006..3f1e301d91 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/throw-range-error-ToTemporalDate.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/throw-range-error-ToTemporalDate.js @@ -1,6 +1,5 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayOfYear description: Temporal.Calendar.prototype.dayOfYear throws RangeError on diff --git a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/throw-type-error-RequireInternalSlot.js b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/throw-type-error-RequireInternalSlot.js index 9371310151..d9c28e495d 100644 --- a/test/built-ins/Temporal/Calendar/prototype/dayOfYear/throw-type-error-RequireInternalSlot.js +++ b/test/built-ins/Temporal/Calendar/prototype/dayOfYear/throw-type-error-RequireInternalSlot.js @@ -1,6 +1,5 @@ // Copyright (C) 2021 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. - /*--- esid: sec-temporal.calendar.prototype.dayOfYear description: Temporal.Calendar.prototype.dayOfYear throws TypeError