mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 12:34:41 +02:00
Temporal: Observe ToString of calendar property in Temporal.PlainTime.from
Similar to the previous commit, but with a toPrimitiveObserver instead of a calendarObserver, which would cause PlainTime.from() to throw.
This commit is contained in:
parent
f2e17efaf8
commit
5747285940
@ -13,6 +13,9 @@ const expected = [
|
||||
"get options.overflow.toString",
|
||||
"call options.overflow.toString",
|
||||
"get fields.calendar",
|
||||
"get fields.calendar.toString",
|
||||
"call fields.calendar.toString",
|
||||
// ToTemporalTimeRecord
|
||||
"get fields.hour",
|
||||
"get fields.hour.valueOf",
|
||||
"call fields.hour.valueOf",
|
||||
@ -33,6 +36,7 @@ const expected = [
|
||||
"call fields.second.valueOf",
|
||||
];
|
||||
const actual = [];
|
||||
|
||||
const fields = TemporalHelpers.propertyBagObserver(actual, {
|
||||
hour: 1.7,
|
||||
minute: 1.7,
|
||||
@ -40,6 +44,7 @@ const fields = TemporalHelpers.propertyBagObserver(actual, {
|
||||
millisecond: 1.7,
|
||||
microsecond: 1.7,
|
||||
nanosecond: 1.7,
|
||||
calendar: "iso8601",
|
||||
}, "fields");
|
||||
|
||||
const options = TemporalHelpers.propertyBagObserver(actual, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user