From 0efd2a3baa4e2b00a1328bbf218ac835943ccbe4 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 20 Jul 2021 20:06:31 +0100 Subject: [PATCH] Rename all uses of Temporal.now to Temporal.Now (#3069) See: https://github.com/tc39/proposal-temporal/commit/d0acb66 --- .../built-ins/Temporal/{now => Now}/instant/extensible.js | 4 ++-- test/built-ins/Temporal/{now => Now}/instant/length.js | 4 ++-- test/built-ins/Temporal/{now => Now}/instant/name.js | 6 +++--- .../Temporal/{now => Now}/instant/not-a-constructor.js | 8 ++++---- test/built-ins/Temporal/{now => Now}/instant/prop-desc.js | 4 ++-- .../{now => Now}/instant/return-value-distinct.js | 4 ++-- .../{now => Now}/instant/return-value-prototype.js | 4 ++-- .../Temporal/{now => Now}/instant/return-value-value.js | 4 ++-- .../{now => Now}/plainDateTime/calendar-function.js | 2 +- .../plainDateTime/calendar-object-fail-call-tostring.js | 2 +- .../plainDateTime/calendar-object-fail-get-calendar.js | 2 +- .../plainDateTime/calendar-object-fail-has-calendar.js | 2 +- .../calendar-object-fail-has-nested-calendar.js | 2 +- .../{now => Now}/plainDateTime/calendar-object.js | 2 +- .../plainDateTime/calendar-temporal-object.js | 2 +- .../Temporal/{now => Now}/plainDateTime/extensible.js | 4 ++-- .../Temporal/{now => Now}/plainDateTime/length.js | 4 ++-- .../built-ins/Temporal/{now => Now}/plainDateTime/name.js | 6 +++--- .../{now => Now}/plainDateTime/not-a-constructor.js | 8 ++++---- .../Temporal/{now => Now}/plainDateTime/prop-desc.js | 4 ++-- .../Temporal/{now => Now}/plainDateTime/return-value.js | 2 +- .../{now => Now}/plainDateTime/time-zone-undefined.js | 4 ++-- .../timezone-getoffsetnanosecondsfor-invocation.js | 2 +- .../timezone-getoffsetnanosecondsfor-non-integer.js | 2 +- .../timezone-getoffsetnanosecondsfor-non-method.js | 2 +- .../timezone-getoffsetnanosecondsfor-not-a-number.js | 2 +- .../timezone-getoffsetnanosecondsfor-out-of-range.js | 2 +- .../timezone-getoffsetnanosecondsfor-poisoned.js | 2 +- .../timezone-getoffsetnanosecondsfor-throws.js | 2 +- .../timezone-getoffsetnanosecondsfor-wrong-type.js | 2 +- .../plainDateTime/timezone-object-fail-call-tostring.js | 2 +- .../plainDateTime/timezone-object-fail-get-timezone.js | 2 +- .../timezone-object-fail-has-nested-timezone.js | 2 +- .../plainDateTime/timezone-object-fail-has-timezone.js | 2 +- .../{now => Now}/plainDateTime/timezone-object.js | 2 +- .../Temporal/{now => Now}/timeZone/extensible.js | 4 ++-- test/built-ins/Temporal/{now => Now}/timeZone/length.js | 4 ++-- test/built-ins/Temporal/{now => Now}/timeZone/name.js | 6 +++--- .../Temporal/{now => Now}/timeZone/new-object.js | 2 +- .../Temporal/{now => Now}/timeZone/not-a-constructor.js | 8 ++++---- .../built-ins/Temporal/{now => Now}/timeZone/prop-desc.js | 4 ++-- .../Temporal/{now => Now}/timeZone/return-value.js | 4 ++-- 42 files changed, 71 insertions(+), 71 deletions(-) rename test/built-ins/Temporal/{now => Now}/instant/extensible.js (66%) rename test/built-ins/Temporal/{now => Now}/instant/length.js (76%) rename test/built-ins/Temporal/{now => Now}/instant/name.js (65%) rename test/built-ins/Temporal/{now => Now}/instant/not-a-constructor.js (51%) rename test/built-ins/Temporal/{now => Now}/instant/prop-desc.js (75%) rename test/built-ins/Temporal/{now => Now}/instant/return-value-distinct.js (80%) rename test/built-ins/Temporal/{now => Now}/instant/return-value-prototype.js (70%) rename test/built-ins/Temporal/{now => Now}/instant/return-value-value.js (76%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/calendar-function.js (95%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/calendar-object-fail-call-tostring.js (91%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/calendar-object-fail-get-calendar.js (91%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/calendar-object-fail-has-calendar.js (92%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/calendar-object-fail-has-nested-calendar.js (92%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/calendar-object.js (97%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/calendar-temporal-object.js (94%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/extensible.js (65%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/length.js (88%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/name.js (63%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/not-a-constructor.js (51%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/prop-desc.js (74%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/return-value.js (90%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/time-zone-undefined.js (85%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-getoffsetnanosecondsfor-invocation.js (93%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-getoffsetnanosecondsfor-non-integer.js (88%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-getoffsetnanosecondsfor-non-method.js (88%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-getoffsetnanosecondsfor-not-a-number.js (91%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-getoffsetnanosecondsfor-out-of-range.js (88%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-getoffsetnanosecondsfor-poisoned.js (89%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-getoffsetnanosecondsfor-throws.js (88%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-getoffsetnanosecondsfor-wrong-type.js (89%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-object-fail-call-tostring.js (89%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-object-fail-get-timezone.js (88%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-object-fail-has-nested-timezone.js (91%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-object-fail-has-timezone.js (90%) rename test/built-ins/Temporal/{now => Now}/plainDateTime/timezone-object.js (97%) rename test/built-ins/Temporal/{now => Now}/timeZone/extensible.js (78%) rename test/built-ins/Temporal/{now => Now}/timeZone/length.js (90%) rename test/built-ins/Temporal/{now => Now}/timeZone/name.js (81%) rename test/built-ins/Temporal/{now => Now}/timeZone/new-object.js (90%) rename test/built-ins/Temporal/{now => Now}/timeZone/not-a-constructor.js (66%) rename test/built-ins/Temporal/{now => Now}/timeZone/prop-desc.js (84%) rename test/built-ins/Temporal/{now => Now}/timeZone/return-value.js (73%) diff --git a/test/built-ins/Temporal/now/instant/extensible.js b/test/built-ins/Temporal/Now/instant/extensible.js similarity index 66% rename from test/built-ins/Temporal/now/instant/extensible.js rename to test/built-ins/Temporal/Now/instant/extensible.js index 372ae803a7..035c90e3af 100644 --- a/test/built-ins/Temporal/now/instant/extensible.js +++ b/test/built-ins/Temporal/Now/instant/extensible.js @@ -2,8 +2,8 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.instant -description: Temporal.now.instant is extensible. +description: Temporal.Now.instant is extensible. features: [Temporal] ---*/ -assert(Object.isExtensible(Temporal.now.instant)); +assert(Object.isExtensible(Temporal.Now.instant)); diff --git a/test/built-ins/Temporal/now/instant/length.js b/test/built-ins/Temporal/Now/instant/length.js similarity index 76% rename from test/built-ins/Temporal/now/instant/length.js rename to test/built-ins/Temporal/Now/instant/length.js index 64402b0556..3e67b606af 100644 --- a/test/built-ins/Temporal/now/instant/length.js +++ b/test/built-ins/Temporal/Now/instant/length.js @@ -2,12 +2,12 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.instant -description: Temporal.now.instant.length is 0 +description: Temporal.Now.instant.length is 0 includes: [propertyHelper.js] features: [Temporal] ---*/ -verifyProperty(Temporal.now.instant, "length", { +verifyProperty(Temporal.Now.instant, "length", { value: 0, writable: false, enumerable: false, diff --git a/test/built-ins/Temporal/now/instant/name.js b/test/built-ins/Temporal/Now/instant/name.js similarity index 65% rename from test/built-ins/Temporal/now/instant/name.js rename to test/built-ins/Temporal/Now/instant/name.js index 8ecab5caa6..7051a7dc96 100644 --- a/test/built-ins/Temporal/now/instant/name.js +++ b/test/built-ins/Temporal/Now/instant/name.js @@ -2,14 +2,14 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.instant -description: Temporal.now.instant.name is "instant". +description: Temporal.Now.instant.name is "instant". includes: [propertyHelper.js] features: [Temporal] ---*/ -assert.sameValue(Temporal.now.instant.name, 'instant'); +assert.sameValue(Temporal.Now.instant.name, 'instant'); -verifyProperty(Temporal.now.instant, 'name', { +verifyProperty(Temporal.Now.instant, 'name', { enumerable: false, writable: false, configurable: true diff --git a/test/built-ins/Temporal/now/instant/not-a-constructor.js b/test/built-ins/Temporal/Now/instant/not-a-constructor.js similarity index 51% rename from test/built-ins/Temporal/now/instant/not-a-constructor.js rename to test/built-ins/Temporal/Now/instant/not-a-constructor.js index 164bca6cfb..cf4547abad 100644 --- a/test/built-ins/Temporal/now/instant/not-a-constructor.js +++ b/test/built-ins/Temporal/Now/instant/not-a-constructor.js @@ -2,13 +2,13 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.instant -description: Temporal.now.instant does not implement [[Construct]] +description: Temporal.Now.instant does not implement [[Construct]] includes: [isConstructor.js] features: [Reflect.construct, Temporal] ---*/ -assert.sameValue(isConstructor(Temporal.now.instant), false, 'isConstructor(Temporal.now.instant) must return false'); +assert.sameValue(isConstructor(Temporal.Now.instant), false, 'isConstructor(Temporal.Now.instant) must return false'); assert.throws(TypeError, () => { - new Temporal.now.instant(); -}, '`new Temporal.now.instant()` throws TypeError'); + new Temporal.Now.instant(); +}, '`new Temporal.Now.instant()` throws TypeError'); diff --git a/test/built-ins/Temporal/now/instant/prop-desc.js b/test/built-ins/Temporal/Now/instant/prop-desc.js similarity index 75% rename from test/built-ins/Temporal/now/instant/prop-desc.js rename to test/built-ins/Temporal/Now/instant/prop-desc.js index 17f3a92a55..f459845e3b 100644 --- a/test/built-ins/Temporal/now/instant/prop-desc.js +++ b/test/built-ins/Temporal/Now/instant/prop-desc.js @@ -2,12 +2,12 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.instant -description: The "instant" property of Temporal.now +description: The "instant" property of Temporal.Now includes: [propertyHelper.js] features: [Temporal] ---*/ -verifyProperty(Temporal.now, 'instant', { +verifyProperty(Temporal.Now, 'instant', { enumerable: false, writable: true, configurable: true diff --git a/test/built-ins/Temporal/now/instant/return-value-distinct.js b/test/built-ins/Temporal/Now/instant/return-value-distinct.js similarity index 80% rename from test/built-ins/Temporal/now/instant/return-value-distinct.js rename to test/built-ins/Temporal/Now/instant/return-value-distinct.js index 8065d01f92..3e9ad4f790 100644 --- a/test/built-ins/Temporal/now/instant/return-value-distinct.js +++ b/test/built-ins/Temporal/Now/instant/return-value-distinct.js @@ -6,7 +6,7 @@ description: Each invocation of the function produces a distinct object value features: [Temporal] ---*/ -var instant1 = Temporal.now.instant(); -var instant2 = Temporal.now.instant(); +var instant1 = Temporal.Now.instant(); +var instant2 = Temporal.Now.instant(); assert.notSameValue(instant1, instant2); diff --git a/test/built-ins/Temporal/now/instant/return-value-prototype.js b/test/built-ins/Temporal/Now/instant/return-value-prototype.js similarity index 70% rename from test/built-ins/Temporal/now/instant/return-value-prototype.js rename to test/built-ins/Temporal/Now/instant/return-value-prototype.js index eb4a4c12fd..ffed6c1579 100644 --- a/test/built-ins/Temporal/now/instant/return-value-prototype.js +++ b/test/built-ins/Temporal/Now/instant/return-value-prototype.js @@ -2,11 +2,11 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.instant -description: Temporal.now.instant returns an instance of the Instant constructor +description: Temporal.Now.instant returns an instance of the Instant constructor features: [Temporal] ---*/ assert.sameValue( - Object.getPrototypeOf(Temporal.now.instant()), + Object.getPrototypeOf(Temporal.Now.instant()), Temporal.Instant.prototype ); diff --git a/test/built-ins/Temporal/now/instant/return-value-value.js b/test/built-ins/Temporal/Now/instant/return-value-value.js similarity index 76% rename from test/built-ins/Temporal/now/instant/return-value-value.js rename to test/built-ins/Temporal/Now/instant/return-value-value.js index ba11f5a93a..6b6337c903 100644 --- a/test/built-ins/Temporal/now/instant/return-value-value.js +++ b/test/built-ins/Temporal/Now/instant/return-value-value.js @@ -3,13 +3,13 @@ /*--- esid: sec-temporal.now.instant description: > - Temporal.now.instant returns an Instant describing the current moment in time + Temporal.Now.instant returns an Instant describing the current moment in time (as corroborated by `Date.now`) features: [Temporal, BigInt] ---*/ var nowBefore = Date.now(); -var seconds = Number(Temporal.now.instant().epochNanoseconds / 1000000n); +var seconds = Number(Temporal.Now.instant().epochNanoseconds / 1000000n); var nowAfter = Date.now(); assert(seconds >= nowBefore, 'before'); diff --git a/test/built-ins/Temporal/now/plainDateTime/calendar-function.js b/test/built-ins/Temporal/Now/plainDateTime/calendar-function.js similarity index 95% rename from test/built-ins/Temporal/now/plainDateTime/calendar-function.js rename to test/built-ins/Temporal/Now/plainDateTime/calendar-function.js index e780917e8c..ed1c6d465f 100644 --- a/test/built-ins/Temporal/now/plainDateTime/calendar-function.js +++ b/test/built-ins/Temporal/Now/plainDateTime/calendar-function.js @@ -38,7 +38,7 @@ Object.defineProperty(Temporal.Calendar, "from", { }, }); -const result = Temporal.now.plainDateTime(calendar, timeZone); +const result = Temporal.Now.plainDateTime(calendar, timeZone); for (const property of ["hour", "minute", "second", "millisecond", "microsecond", "nanosecond"]) { assert.sameValue(result[property], 0, property); } diff --git a/test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-call-tostring.js b/test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-call-tostring.js similarity index 91% rename from test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-call-tostring.js rename to test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-call-tostring.js index 52efb50883..669f2526d9 100644 --- a/test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-call-tostring.js +++ b/test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-call-tostring.js @@ -16,5 +16,5 @@ var calendar = { }; assert.throws(Test262Error, function() { - Temporal.now.plainDateTime(calendar); + Temporal.Now.plainDateTime(calendar); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-get-calendar.js b/test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-get-calendar.js similarity index 91% rename from test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-get-calendar.js rename to test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-get-calendar.js index d9161a6a8e..e1971c14bf 100644 --- a/test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-get-calendar.js +++ b/test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-get-calendar.js @@ -13,5 +13,5 @@ var calendar = { }; assert.throws(Test262Error, function() { - Temporal.now.plainDateTime(calendar); + Temporal.Now.plainDateTime(calendar); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-has-calendar.js b/test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-has-calendar.js similarity index 92% rename from test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-has-calendar.js rename to test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-has-calendar.js index c07d2308d1..c272d4d7ef 100644 --- a/test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-has-calendar.js +++ b/test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-has-calendar.js @@ -16,5 +16,5 @@ var calendar = new Proxy({}, { }); assert.throws(Test262Error, function() { - Temporal.now.plainDateTime(calendar); + Temporal.Now.plainDateTime(calendar); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-has-nested-calendar.js b/test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-has-nested-calendar.js similarity index 92% rename from test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-has-nested-calendar.js rename to test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-has-nested-calendar.js index f0d4c84858..ccbeb6260f 100644 --- a/test/built-ins/Temporal/now/plainDateTime/calendar-object-fail-has-nested-calendar.js +++ b/test/built-ins/Temporal/Now/plainDateTime/calendar-object-fail-has-nested-calendar.js @@ -17,5 +17,5 @@ var calendar = { }; assert.throws(Test262Error, function() { - Temporal.now.plainDateTime(calendar); + Temporal.Now.plainDateTime(calendar); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/calendar-object.js b/test/built-ins/Temporal/Now/plainDateTime/calendar-object.js similarity index 97% rename from test/built-ins/Temporal/now/plainDateTime/calendar-object.js rename to test/built-ins/Temporal/Now/plainDateTime/calendar-object.js index 74a7dec849..c1cbbaf802 100644 --- a/test/built-ins/Temporal/now/plainDateTime/calendar-object.js +++ b/test/built-ins/Temporal/Now/plainDateTime/calendar-object.js @@ -56,6 +56,6 @@ Object.defineProperty(Temporal.Calendar, 'from', { }, }); -Temporal.now.plainDateTime(calendar); +Temporal.Now.plainDateTime(calendar); assert.compareArray(actual, expected); diff --git a/test/built-ins/Temporal/now/plainDateTime/calendar-temporal-object.js b/test/built-ins/Temporal/Now/plainDateTime/calendar-temporal-object.js similarity index 94% rename from test/built-ins/Temporal/now/plainDateTime/calendar-temporal-object.js rename to test/built-ins/Temporal/Now/plainDateTime/calendar-temporal-object.js index e3260accf8..92e8dafcee 100644 --- a/test/built-ins/Temporal/now/plainDateTime/calendar-temporal-object.js +++ b/test/built-ins/Temporal/Now/plainDateTime/calendar-temporal-object.js @@ -17,6 +17,6 @@ features: [Temporal] ---*/ TemporalHelpers.checkToTemporalCalendarFastPath((temporalObject, calendar) => { - const result = Temporal.now.plainDateTime(temporalObject); + const result = Temporal.Now.plainDateTime(temporalObject); assert.sameValue(result.calendar, calendar, "Temporal object coerced to calendar"); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/extensible.js b/test/built-ins/Temporal/Now/plainDateTime/extensible.js similarity index 65% rename from test/built-ins/Temporal/now/plainDateTime/extensible.js rename to test/built-ins/Temporal/Now/plainDateTime/extensible.js index 85c91d80b0..597dc3b7a3 100644 --- a/test/built-ins/Temporal/now/plainDateTime/extensible.js +++ b/test/built-ins/Temporal/Now/plainDateTime/extensible.js @@ -2,8 +2,8 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.plaindatetime -description: Temporal.now.plainDateTime is extensible. +description: Temporal.Now.plainDateTime is extensible. features: [Temporal] ---*/ -assert(Object.isExtensible(Temporal.now.plainDateTime)); +assert(Object.isExtensible(Temporal.Now.plainDateTime)); diff --git a/test/built-ins/Temporal/now/plainDateTime/length.js b/test/built-ins/Temporal/Now/plainDateTime/length.js similarity index 88% rename from test/built-ins/Temporal/now/plainDateTime/length.js rename to test/built-ins/Temporal/Now/plainDateTime/length.js index 135faddbd3..c14d038bbd 100644 --- a/test/built-ins/Temporal/now/plainDateTime/length.js +++ b/test/built-ins/Temporal/Now/plainDateTime/length.js @@ -3,7 +3,7 @@ /*--- esid: sec-temporal.now.plaindatetime -description: The `length` property of Temporal.now.plainDateTime +description: The `length` property of Temporal.Now.plainDateTime info: | Every built-in function object, including constructors, has a "length" property whose value is an integer. Unless otherwise specified, this value is equal to the largest number of named @@ -17,7 +17,7 @@ includes: [propertyHelper.js] features: [Temporal] ---*/ -verifyProperty(Temporal.now.plainDateTime, "length", { +verifyProperty(Temporal.Now.plainDateTime, "length", { value: 1, writable: false, enumerable: false, diff --git a/test/built-ins/Temporal/now/plainDateTime/name.js b/test/built-ins/Temporal/Now/plainDateTime/name.js similarity index 63% rename from test/built-ins/Temporal/now/plainDateTime/name.js rename to test/built-ins/Temporal/Now/plainDateTime/name.js index 6b7818aa4f..9298dbd945 100644 --- a/test/built-ins/Temporal/now/plainDateTime/name.js +++ b/test/built-ins/Temporal/Now/plainDateTime/name.js @@ -2,14 +2,14 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.plainDateTime -description: Temporal.now.plainDateTime.name is "plainDateTime". +description: Temporal.Now.plainDateTime.name is "plainDateTime". includes: [propertyHelper.js] features: [Temporal] ---*/ -assert.sameValue(Temporal.now.plainDateTime.name, 'plainDateTime'); +assert.sameValue(Temporal.Now.plainDateTime.name, 'plainDateTime'); -verifyProperty(Temporal.now.plainDateTime, 'name', { +verifyProperty(Temporal.Now.plainDateTime, 'name', { enumerable: false, writable: false, configurable: true diff --git a/test/built-ins/Temporal/now/plainDateTime/not-a-constructor.js b/test/built-ins/Temporal/Now/plainDateTime/not-a-constructor.js similarity index 51% rename from test/built-ins/Temporal/now/plainDateTime/not-a-constructor.js rename to test/built-ins/Temporal/Now/plainDateTime/not-a-constructor.js index 4f8f19ac4d..5db793c79e 100644 --- a/test/built-ins/Temporal/now/plainDateTime/not-a-constructor.js +++ b/test/built-ins/Temporal/Now/plainDateTime/not-a-constructor.js @@ -2,13 +2,13 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.plaindatetime -description: Temporal.now.plainDateTime does not implement [[Construct]] +description: Temporal.Now.plainDateTime does not implement [[Construct]] includes: [isConstructor.js] features: [Reflect.construct, Temporal] ---*/ -assert.sameValue(isConstructor(Temporal.now.plainDateTime), false, 'isConstructor(Temporal.now.plainDateTime) must return false'); +assert.sameValue(isConstructor(Temporal.Now.plainDateTime), false, 'isConstructor(Temporal.Now.plainDateTime) must return false'); assert.throws(TypeError, () => { - new Temporal.now.plainDateTime(); -}, '`new Temporal.now.plainDateTime()` throws TypeError'); + new Temporal.Now.plainDateTime(); +}, '`new Temporal.Now.plainDateTime()` throws TypeError'); diff --git a/test/built-ins/Temporal/now/plainDateTime/prop-desc.js b/test/built-ins/Temporal/Now/plainDateTime/prop-desc.js similarity index 74% rename from test/built-ins/Temporal/now/plainDateTime/prop-desc.js rename to test/built-ins/Temporal/Now/plainDateTime/prop-desc.js index d2dfb0d282..122caad8cd 100644 --- a/test/built-ins/Temporal/now/plainDateTime/prop-desc.js +++ b/test/built-ins/Temporal/Now/plainDateTime/prop-desc.js @@ -2,12 +2,12 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.now.plaindatetime -description: The "plainDateTime" property of Temporal.now +description: The "plainDateTime" property of Temporal.Now includes: [propertyHelper.js] features: [Temporal] ---*/ -verifyProperty(Temporal.now, 'plainDateTime', { +verifyProperty(Temporal.Now, 'plainDateTime', { enumerable: false, writable: true, configurable: true diff --git a/test/built-ins/Temporal/now/plainDateTime/return-value.js b/test/built-ins/Temporal/Now/plainDateTime/return-value.js similarity index 90% rename from test/built-ins/Temporal/now/plainDateTime/return-value.js rename to test/built-ins/Temporal/Now/plainDateTime/return-value.js index e0258586ce..1c925b50b2 100644 --- a/test/built-ins/Temporal/now/plainDateTime/return-value.js +++ b/test/built-ins/Temporal/Now/plainDateTime/return-value.js @@ -14,7 +14,7 @@ const timeZone = { } }; -const result = Temporal.now.plainDateTime(calendar, timeZone); +const result = Temporal.Now.plainDateTime(calendar, timeZone); for (const property of ["hour", "minute", "second", "millisecond", "microsecond", "nanosecond"]) { assert.sameValue(result[property], 0, property); } diff --git a/test/built-ins/Temporal/now/plainDateTime/time-zone-undefined.js b/test/built-ins/Temporal/Now/plainDateTime/time-zone-undefined.js similarity index 85% rename from test/built-ins/Temporal/now/plainDateTime/time-zone-undefined.js rename to test/built-ins/Temporal/Now/plainDateTime/time-zone-undefined.js index 43d6a286c1..0dd370a6f0 100644 --- a/test/built-ins/Temporal/now/plainDateTime/time-zone-undefined.js +++ b/test/built-ins/Temporal/Now/plainDateTime/time-zone-undefined.js @@ -18,12 +18,12 @@ Object.defineProperty(Temporal.TimeZone, "from", { }, }); -const resultExplicit = Temporal.now.plainDateTime("iso8601", undefined); +const resultExplicit = Temporal.Now.plainDateTime("iso8601", undefined); assert(resultExplicit instanceof Temporal.PlainDateTime); assert.compareArray(actual, expected, "Temporal.TimeZone.from should not be called"); -const resultImplicit = Temporal.now.plainDateTime("iso8601"); +const resultImplicit = Temporal.Now.plainDateTime("iso8601"); assert(resultImplicit instanceof Temporal.PlainDateTime); assert.compareArray(actual, expected, "Temporal.TimeZone.from should not be called"); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-invocation.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-invocation.js similarity index 93% rename from test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-invocation.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-invocation.js index 0fe33230d8..50a9b8e4fa 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-invocation.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-invocation.js @@ -17,7 +17,7 @@ var timeZone = { }, }; -Temporal.now.plainDateTime('iso8601', timeZone); +Temporal.Now.plainDateTime('iso8601', timeZone); assert.sameValue(calls.length, 1, 'call count'); assert.sameValue(calls[0].args.length, 1, 'arguments'); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-non-integer.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-non-integer.js similarity index 88% rename from test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-non-integer.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-non-integer.js index b18f8c2228..20dd7a7bc1 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-non-integer.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-non-integer.js @@ -11,5 +11,5 @@ includes: [temporalHelpers.js] [3600_000_000_000.5, NaN].forEach((wrongOffset) => { const timeZone = TemporalHelpers.specificOffsetTimeZone(wrongOffset); - assert.throws(RangeError, () => Temporal.now.plainDateTime("iso8601", timeZone)); + assert.throws(RangeError, () => Temporal.Now.plainDateTime("iso8601", timeZone)); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-non-method.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-non-method.js similarity index 88% rename from test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-non-method.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-non-method.js index f35f30bdd1..7ca716eace 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-non-method.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-non-method.js @@ -11,5 +11,5 @@ var timeZone = { }; assert.throws(TypeError, function() { - Temporal.now.plainDateTime('iso8601', timeZone); + Temporal.Now.plainDateTime('iso8601', timeZone); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-not-a-number.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-not-a-number.js similarity index 91% rename from test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-not-a-number.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-not-a-number.js index d080e76ab4..4d97c66bc2 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-not-a-number.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-not-a-number.js @@ -28,6 +28,6 @@ for (const dateTime of invalidValues) { }, }; - assert.throws(TypeError, () => Temporal.now.plainDateTime("iso8601", timeZone)); + assert.throws(TypeError, () => Temporal.Now.plainDateTime("iso8601", timeZone)); assert.sameValue(callCount, 1, 'Invoked `getOffsetNanosecondsFor`'); } diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-out-of-range.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-out-of-range.js similarity index 88% rename from test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-out-of-range.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-out-of-range.js index ba14c11cff..027f9567f0 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-out-of-range.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-out-of-range.js @@ -11,5 +11,5 @@ includes: [temporalHelpers.js] [-86400_000_000_001, 86400_000_000_001, -Infinity, Infinity].forEach((wrongOffset) => { const timeZone = TemporalHelpers.specificOffsetTimeZone(wrongOffset); - assert.throws(RangeError, () => Temporal.now.plainDateTime("iso8601", timeZone)); + assert.throws(RangeError, () => Temporal.Now.plainDateTime("iso8601", timeZone)); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-poisoned.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-poisoned.js similarity index 89% rename from test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-poisoned.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-poisoned.js index b0780d260a..3e987ee292 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-poisoned.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-poisoned.js @@ -13,5 +13,5 @@ var timeZone = { }; assert.throws(Test262Error, function() { - Temporal.now.plainDateTime('iso8601', timeZone); + Temporal.Now.plainDateTime('iso8601', timeZone); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-throws.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-throws.js similarity index 88% rename from test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-throws.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-throws.js index 8bef0b8482..95a380abd4 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-throws.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-throws.js @@ -13,5 +13,5 @@ var timeZone = { }; assert.throws(Test262Error, function() { - Temporal.now.plainDateTime('iso8601', timeZone); + Temporal.Now.plainDateTime('iso8601', timeZone); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-wrong-type.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-wrong-type.js similarity index 89% rename from test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-wrong-type.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-wrong-type.js index 89b06145f9..c0a2c12d09 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-getoffsetnanosecondsfor-wrong-type.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-getoffsetnanosecondsfor-wrong-type.js @@ -20,5 +20,5 @@ includes: [temporalHelpers.js] ].forEach((wrongOffset) => { const timeZone = TemporalHelpers.specificOffsetTimeZone(wrongOffset); - assert.throws(TypeError, () => Temporal.now.plainDateTime("iso8601", timeZone)); + assert.throws(TypeError, () => Temporal.Now.plainDateTime("iso8601", timeZone)); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-call-tostring.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-call-tostring.js similarity index 89% rename from test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-call-tostring.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-call-tostring.js index 6d6c18111f..e48e3701e3 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-call-tostring.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-call-tostring.js @@ -16,5 +16,5 @@ var timeZone = { }; assert.throws(Test262Error, function() { - Temporal.now.plainDateTime("iso8601", timeZone); + Temporal.Now.plainDateTime("iso8601", timeZone); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-get-timezone.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-get-timezone.js similarity index 88% rename from test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-get-timezone.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-get-timezone.js index 98a0d91423..e558d9b91d 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-get-timezone.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-get-timezone.js @@ -13,5 +13,5 @@ var timeZone = { }; assert.throws(Test262Error, function() { - Temporal.now.plainDateTime("iso8601", timeZone); + Temporal.Now.plainDateTime("iso8601", timeZone); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-has-nested-timezone.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-has-nested-timezone.js similarity index 91% rename from test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-has-nested-timezone.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-has-nested-timezone.js index 61d3540d6a..263bc75c4c 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-has-nested-timezone.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-has-nested-timezone.js @@ -17,5 +17,5 @@ var timeZone = { }; assert.throws(Test262Error, function() { - Temporal.now.plainDateTime("iso8601", timeZone); + Temporal.Now.plainDateTime("iso8601", timeZone); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-has-timezone.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-has-timezone.js similarity index 90% rename from test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-has-timezone.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-has-timezone.js index da56d1ed21..650a123d12 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-object-fail-has-timezone.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-object-fail-has-timezone.js @@ -15,5 +15,5 @@ var timeZone = new Proxy({}, { }); assert.throws(Test262Error, function() { - Temporal.now.plainDateTime("iso8601", timeZone); + Temporal.Now.plainDateTime("iso8601", timeZone); }); diff --git a/test/built-ins/Temporal/now/plainDateTime/timezone-object.js b/test/built-ins/Temporal/Now/plainDateTime/timezone-object.js similarity index 97% rename from test/built-ins/Temporal/now/plainDateTime/timezone-object.js rename to test/built-ins/Temporal/Now/plainDateTime/timezone-object.js index 381f47b634..14f21819af 100644 --- a/test/built-ins/Temporal/now/plainDateTime/timezone-object.js +++ b/test/built-ins/Temporal/Now/plainDateTime/timezone-object.js @@ -57,6 +57,6 @@ Object.defineProperty(Temporal.TimeZone, "from", { }, }); -Temporal.now.plainDateTime("iso8601", timeZone); +Temporal.Now.plainDateTime("iso8601", timeZone); assert.compareArray(actual, expected); diff --git a/test/built-ins/Temporal/now/timeZone/extensible.js b/test/built-ins/Temporal/Now/timeZone/extensible.js similarity index 78% rename from test/built-ins/Temporal/now/timeZone/extensible.js rename to test/built-ins/Temporal/Now/timeZone/extensible.js index 1b66ae317b..1a6ac6d6b9 100644 --- a/test/built-ins/Temporal/now/timeZone/extensible.js +++ b/test/built-ins/Temporal/Now/timeZone/extensible.js @@ -3,7 +3,7 @@ /*--- esid: sec-temporal.now.timezone -description: Temporal.now.timeZone is extensible. +description: Temporal.Now.timeZone is extensible. info: | ## 17 ECMAScript Standard Built-in Objects @@ -12,4 +12,4 @@ info: | features: [Temporal] ---*/ -assert(Object.isExtensible(Temporal.now.timeZone)); +assert(Object.isExtensible(Temporal.Now.timeZone)); diff --git a/test/built-ins/Temporal/now/timeZone/length.js b/test/built-ins/Temporal/Now/timeZone/length.js similarity index 90% rename from test/built-ins/Temporal/now/timeZone/length.js rename to test/built-ins/Temporal/Now/timeZone/length.js index 1c460d2d7d..fdf33918f1 100644 --- a/test/built-ins/Temporal/now/timeZone/length.js +++ b/test/built-ins/Temporal/Now/timeZone/length.js @@ -3,7 +3,7 @@ /*--- esid: sec-temporal.now.timezone -description: Temporal.now.timeZone.length is 0 +description: Temporal.Now.timeZone.length is 0 info: | Every built-in function object, including constructors, has a "length" property whose value is an integer. Unless otherwise specified, this value is equal to the largest number of named @@ -17,7 +17,7 @@ includes: [propertyHelper.js] features: [Temporal] ---*/ -verifyProperty(Temporal.now.timeZone, "length", { +verifyProperty(Temporal.Now.timeZone, "length", { value: 0, writable: false, enumerable: false, diff --git a/test/built-ins/Temporal/now/timeZone/name.js b/test/built-ins/Temporal/Now/timeZone/name.js similarity index 81% rename from test/built-ins/Temporal/now/timeZone/name.js rename to test/built-ins/Temporal/Now/timeZone/name.js index 218fd2d8c7..0fb199bab0 100644 --- a/test/built-ins/Temporal/now/timeZone/name.js +++ b/test/built-ins/Temporal/Now/timeZone/name.js @@ -3,7 +3,7 @@ /*--- esid: sec-temporal.now.timezone -description: Temporal.now.timeZone.name is "timeZone". +description: Temporal.Now.timeZone.name is "timeZone". info: | ## 17 ECMAScript Standard Built-in Objects: Every built-in Function object, including constructors, that is not @@ -17,9 +17,9 @@ includes: [propertyHelper.js] features: [Temporal] ---*/ -assert.sameValue(Temporal.now.timeZone.name, 'timeZone'); +assert.sameValue(Temporal.Now.timeZone.name, 'timeZone'); -verifyProperty(Temporal.now.timeZone, 'name', { +verifyProperty(Temporal.Now.timeZone, 'name', { enumerable: false, writable: false, configurable: true diff --git a/test/built-ins/Temporal/now/timeZone/new-object.js b/test/built-ins/Temporal/Now/timeZone/new-object.js similarity index 90% rename from test/built-ins/Temporal/now/timeZone/new-object.js rename to test/built-ins/Temporal/Now/timeZone/new-object.js index 2a98242d60..f242db9ea8 100644 --- a/test/built-ins/Temporal/now/timeZone/new-object.js +++ b/test/built-ins/Temporal/Now/timeZone/new-object.js @@ -7,7 +7,7 @@ description: Each invocation of the function produces a distinct object value features: [Temporal] ---*/ -const tz = Temporal.now.timeZone; +const tz = Temporal.Now.timeZone; const tz1 = tz(); const tz2 = tz(); assert.notSameValue(tz1, tz2); diff --git a/test/built-ins/Temporal/now/timeZone/not-a-constructor.js b/test/built-ins/Temporal/Now/timeZone/not-a-constructor.js similarity index 66% rename from test/built-ins/Temporal/now/timeZone/not-a-constructor.js rename to test/built-ins/Temporal/Now/timeZone/not-a-constructor.js index 579aa1dc12..5d531eaf44 100644 --- a/test/built-ins/Temporal/now/timeZone/not-a-constructor.js +++ b/test/built-ins/Temporal/Now/timeZone/not-a-constructor.js @@ -3,7 +3,7 @@ /*--- esid: sec-temporal.now.timezone -description: Temporal.now.timeZone does not implement [[Construct]] +description: Temporal.Now.timeZone does not implement [[Construct]] info: | ECMAScript Function Objects @@ -14,8 +14,8 @@ includes: [isConstructor.js] features: [Reflect.construct, Temporal] ---*/ -assert.sameValue(isConstructor(Temporal.now.timeZone), false, 'isConstructor(Temporal.now.timeZone) must return false'); +assert.sameValue(isConstructor(Temporal.Now.timeZone), false, 'isConstructor(Temporal.Now.timeZone) must return false'); assert.throws(TypeError, () => { - new Temporal.now.timeZone(); -}, '`new Temporal.now.timeZone()` throws TypeError'); + new Temporal.Now.timeZone(); +}, '`new Temporal.Now.timeZone()` throws TypeError'); diff --git a/test/built-ins/Temporal/now/timeZone/prop-desc.js b/test/built-ins/Temporal/Now/timeZone/prop-desc.js similarity index 84% rename from test/built-ins/Temporal/now/timeZone/prop-desc.js rename to test/built-ins/Temporal/Now/timeZone/prop-desc.js index 14b87c9bfd..cc356fbc5a 100644 --- a/test/built-ins/Temporal/now/timeZone/prop-desc.js +++ b/test/built-ins/Temporal/Now/timeZone/prop-desc.js @@ -3,7 +3,7 @@ /*--- esid: sec-temporal.now.timezone -description: The "timeZone" property of Temporal.now +description: The "timeZone" property of Temporal.Now info: | Section 17: Every other data property described in clauses 18 through 26 and in Annex B.2 has the attributes { [[Writable]]: true, @@ -12,7 +12,7 @@ includes: [propertyHelper.js] features: [Temporal] ---*/ -verifyProperty(Temporal.now, 'timeZone', { +verifyProperty(Temporal.Now, 'timeZone', { enumerable: false, writable: true, configurable: true diff --git a/test/built-ins/Temporal/now/timeZone/return-value.js b/test/built-ins/Temporal/Now/timeZone/return-value.js similarity index 73% rename from test/built-ins/Temporal/now/timeZone/return-value.js rename to test/built-ins/Temporal/Now/timeZone/return-value.js index 5ecbe9b59d..11623e149a 100644 --- a/test/built-ins/Temporal/now/timeZone/return-value.js +++ b/test/built-ins/Temporal/Now/timeZone/return-value.js @@ -3,13 +3,13 @@ /*--- esid: sec-temporal.now.timezone -description: Temporal.now.timeZone returns an instance of the TimeZone constructor +description: Temporal.Now.timeZone returns an instance of the TimeZone constructor info: | 1. Return ? SystemTimeZone(). features: [Temporal] ---*/ assert.sameValue( - Object.getPrototypeOf(Temporal.now.timeZone()), + Object.getPrototypeOf(Temporal.Now.timeZone()), Temporal.TimeZone.prototype );