mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 13:34:38 +02:00
Fix two leftover uses of Temporal.ZonedDateTime.prototype.timeZone
This commit is contained in:
parent
68a817d713
commit
dc40377cb4
@ -369,7 +369,7 @@ var TemporalHelpers = {
|
||||
assert(expected instanceof Temporal.ZonedDateTime, `${prefix}expected value should be a Temporal.ZonedDateTime`);
|
||||
assert(actual instanceof Temporal.ZonedDateTime, `${prefix}instanceof`);
|
||||
assert(actual.equals(expected), `${prefix}equals method`);
|
||||
assert.sameValue(actual.timeZone, expected.timeZone, `${prefix}time zone same value:`);
|
||||
assert.sameValue(actual.timeZoneId, expected.timeZoneId, `${prefix}time zone same value:`);
|
||||
assert.sameValue(
|
||||
actual.calendarId,
|
||||
expected.calendarId,
|
||||
|
@ -11,7 +11,7 @@ const orig = new Temporal.ZonedDateTime(946684800_000_000_010n, "UTC");
|
||||
const result = Temporal.ZonedDateTime.from(orig);
|
||||
|
||||
assert.sameValue(result.epochNanoseconds, 946684800_000_000_010n, "ZonedDateTime is copied");
|
||||
assert.sameValue(result.timeZone, orig.timeZone, "time zone is the same");
|
||||
assert.sameValue(result.timeZoneId, orig.timeZoneId, "time zone is the same");
|
||||
assert.sameValue(result.calendarId, orig.calendarId, "calendar is the same");
|
||||
|
||||
assert.notSameValue(
|
||||
|
Loading…
x
Reference in New Issue
Block a user