mirror of https://github.com/tc39/test262.git
Feedback from code review
This commit is contained in:
parent
d2d84950c3
commit
7fb465496f
|
@ -11,7 +11,6 @@ features: [Temporal]
|
|||
// "1976-11-18T00:00:00+01:00[+01:00]"
|
||||
const expected = new Temporal.ZonedDateTime(217119600000000000n, "+01:00");
|
||||
|
||||
// can be constructed with monthCode and without month
|
||||
TemporalHelpers.assertZonedDateTimesEqual(Temporal.ZonedDateTime.from({
|
||||
year: 1976,
|
||||
month: 11,
|
||||
|
|
|
@ -14,3 +14,22 @@ assert.throws(TypeError, () => Temporal.ZonedDateTime.from({
|
|||
days: 18,
|
||||
timeZone: "+01:00"
|
||||
}));
|
||||
assert.throws(TypeError, () => Temporal.ZonedDateTime.from({
|
||||
years: 1976,
|
||||
months: 11,
|
||||
day: 18,
|
||||
timeZone: "+01:00"
|
||||
}));
|
||||
assert.throws(TypeError, () => Temporal.ZonedDateTime.from({
|
||||
year: 1976,
|
||||
months: 11,
|
||||
days: 18,
|
||||
timeZone: "+01:00"
|
||||
}));
|
||||
assert.throws(TypeError, () => Temporal.ZonedDateTime.from({
|
||||
years: 1976,
|
||||
month: 11,
|
||||
days: 18,
|
||||
timeZone: "+01:00"
|
||||
}));
|
||||
|
||||
|
|
|
@ -3,11 +3,10 @@
|
|||
|
||||
/*---
|
||||
esid: sec-temporal.zoneddatetime.from
|
||||
description: Temporal.ZonedDateTime.from({}) throws.
|
||||
description: from() throws if a required property is undefined.
|
||||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
// Temporal.ZonedDateTime.from(required prop undefined) throws
|
||||
assert.throws(TypeError, () => Temporal.ZonedDateTime.from({
|
||||
year: 1976,
|
||||
month: undefined,
|
||||
|
|
Loading…
Reference in New Issue