2023-03-03 02:40:57 +01:00
|
|
|
// Copyright (C) 2023 Igalia, S.L. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: sec-temporal.plainyearmonth.from
|
2024-07-30 23:36:13 +02:00
|
|
|
description: overflow property is not extracted with ISO-invalid string argument.
|
2023-03-03 02:40:57 +01:00
|
|
|
includes: [compareArray.js, temporalHelpers.js]
|
|
|
|
features: [Temporal]
|
|
|
|
---*/
|
|
|
|
|
|
|
|
let actual = [];
|
|
|
|
const options = TemporalHelpers.propertyBagObserver(actual, { overflow: "constrain" }, "options");
|
|
|
|
|
|
|
|
assert.throws(RangeError, () => Temporal.PlainYearMonth.from("2020-13", options));
|
2024-07-30 23:36:13 +02:00
|
|
|
assert.compareArray(actual, [], "options read after string parsing");
|