@northguild/gmt
Version:
Date and time library for JavaScript and TypeScript, built on TC39 Temporal: time zones, DST, business days, ISO 8601 strings in and out. Never throws.
627 lines (625 loc) • 21.2 kB
JavaScript
import { Temporal } from "../temporal.js";
import { rangeFieldCases, rangeFieldProblem } from "./rangeFieldRepros.js";
import { probeReproGroups } from "./probeRepros.js";
// src/internal/temporalCompat/repros.ts
const MAX_EPOCH_NANOSECONDS = 8640000000000000000000n;
const MIN_EPOCH_NANOSECONDS = -8640000000000000000000n;
const NANOSECONDS_PER_DAY = 86400000000000n;
const NANOSECONDS_PER_HOUR = 3600000000000n;
function zoned(epochNanoseconds, timeZone) {
return new Temporal.ZonedDateTime(epochNanoseconds, timeZone);
}
function zonedRepro(defect, name, expected, run) {
return {
defect,
calendar: "iso8601",
name,
expected,
run: () => String(run())
};
}
/** The error class a call throws, or `returned <value>` when it does not throw. */
function thrownErrorName(run) {
try {
return `returned ${String(run())}`;
} catch (error) {
return error instanceof Error ? error.name : String(error);
}
}
const SYDNEY_NEAR_MAX = MAX_EPOCH_NANOSECONDS - 3n * NANOSECONDS_PER_DAY - 5n * NANOSECONDS_PER_HOUR;
/**
* zoned.A (`internal/zonedWallClock.ts` defect 1): `GetNamedTimeZoneEpochNanoseconds` clamps its
* offset probe to the wall clock's own UTC reading instead of the range limit. Polyfill 05ce7a3
* fixes the `max.*` rows only: a 0.5.1 build with it applied still throws for every `min.*` row, so
* this group must not be retired on the maximum alone. Expected values: Chromium 153 native Temporal
* (TC39 `DifferenceZonedDateTime`, `InterpretISODateTimeOffset`; upstream-issue draft A).
*/
const zonedARepros = [
zonedRepro("zoned.A", "max.parseSydney", "+275760-09-13T09:00:00+10:00[Australia/Sydney]", () => Temporal.ZonedDateTime.from("+275760-09-13T09:00:00+10:00[Australia/Sydney]")),
zonedRepro("zoned.A", "max.untilSydney", "P1D", () => zoned(MAX_EPOCH_NANOSECONDS - NANOSECONDS_PER_DAY, "Australia/Sydney").until(zoned(MAX_EPOCH_NANOSECONDS, "Australia/Sydney"), { largestUnit: "day" })),
zonedRepro("zoned.A", "max.sinceSydneyYears", "-P3DT5H", () => zoned(SYDNEY_NEAR_MAX, "Australia/Sydney").since(zoned(MAX_EPOCH_NANOSECONDS, "Australia/Sydney"), { largestUnit: "year" })),
zonedRepro("zoned.A", "max.untilKiritimati", "P1D", () => zoned(MAX_EPOCH_NANOSECONDS - NANOSECONDS_PER_DAY, "Pacific/Kiritimati").until(zoned(MAX_EPOCH_NANOSECONDS, "Pacific/Kiritimati"), { largestUnit: "week" })),
zonedRepro("zoned.A", "max.totalSydney", "2.0416666666666665", () => Temporal.Duration.from("PT49H").total({
unit: "day",
relativeTo: zoned(SYDNEY_NEAR_MAX, "Australia/Sydney")
})),
zonedRepro("zoned.A", "max.compareSydney", "-1", () => Temporal.Duration.compare("P3D", "PT73H", { relativeTo: zoned(SYDNEY_NEAR_MAX, "Australia/Sydney") })),
zonedRepro("zoned.A", "min.parseNewYork", "-271821-04-19T20:00:00-04:56[America/New_York]", () => Temporal.ZonedDateTime.from("-271821-04-19T20:00:00[America/New_York]")),
zonedRepro("zoned.A", "min.toZonedDateTimeNewYork", "-271821-04-19T20:00:00-04:56[America/New_York]", () => Temporal.PlainDateTime.from("-271821-04-19T20:00").toZonedDateTime("America/New_York")),
zonedRepro("zoned.A", "min.untilNewYork", "-P1D", () => zoned(-8639999913600000000000n, "America/New_York").until(zoned(MIN_EPOCH_NANOSECONDS, "America/New_York"), { largestUnit: "day" })),
zonedRepro("zoned.A", "min.untilHonolulu", "-P1D", () => zoned(-8639999913600000000000n, "Pacific/Honolulu").until(zoned(MIN_EPOCH_NANOSECONDS, "Pacific/Honolulu"), { largestUnit: "day" }))
];
/** America/Santiago's last transition before the maximum (-04:00 → -03:00, local midnight skipped). */
const SANTIAGO_LAST_TRANSITION = "+275760-09-07T01:00:00-03:00[America/Santiago]";
/**
* zoned.B (`internal/zonedWallClock.ts` defect 2): `GetNamedTimeZoneNextTransition` returns null
* once a search step would pass the maximum, so a transition in the range's last two weeks is
* missed and `GetStartOfDay` dereferences that null. Not fixed on the polyfill's main branch.
* Expected values: Chromium 153 (TC39 `GetNamedTimeZoneNextTransition`, `GetStartOfDay`).
*/
const zonedBRepros = [
zonedRepro("zoned.B", "max.nextTransition", SANTIAGO_LAST_TRANSITION, () => Temporal.Instant.from("+275760-09-01T00:00:00Z").toZonedDateTimeISO("America/Santiago").getTimeZoneTransition("next")),
zonedRepro("zoned.B", "max.startOfDaySantiago", SANTIAGO_LAST_TRANSITION, () => Temporal.PlainDate.from("+275760-09-07").toZonedDateTime("America/Santiago")),
zonedRepro("zoned.B", "max.hoursInDaySantiago", "23", () => Temporal.ZonedDateTime.from("+275760-09-07T12:00[America/Santiago]").hoursInDay)
];
/**
* zoned.D (`internal/zonedDifference/utcValidity.ts`): the `"UTC"` fast path of
* `GetPossibleEpochNanoseconds` skips `IsValidEpochNanoseconds`, so a UTC rounding or total window
* ending past the maximum returns a value where TC39 throws. Not fixed on the polyfill's main
* branch. Expected: RangeError, as Chromium 153 throws (and the polyfill does for `+00:00`).
*/
const zonedDRepros = [zonedRepro("zoned.D", "max.untilUtcRounded", "RangeError", () => thrownErrorName(() => zoned(SYDNEY_NEAR_MAX, "UTC").until(zoned(MAX_EPOCH_NANOSECONDS, "UTC"), {
largestUnit: "day",
smallestUnit: "hour"
}))), zonedRepro("zoned.D", "max.totalUtc", "RangeError", () => thrownErrorName(() => Temporal.Duration.from("PT49H").total({
unit: "day",
relativeTo: zoned(MAX_EPOCH_NANOSECONDS - 2n * NANOSECONDS_PER_DAY - NANOSECONDS_PER_HOUR, "UTC")
})))];
/** Asia/Manila's 1844-12-31 date-line crossing (−15:56:08 → +08:03:52), as Chromium 153 prints it. */
const MANILA_CROSSING = "1845-01-01T00:00:00+08:04[Asia/Manila]";
/**
* zoned.E (`internal/zonedWallClock.ts` defect 3): `GetNamedTimeZoneNextTransition` and
* `…PreviousTransition` start their search at `BEFORE_FIRST_DST` = 1847-01-01, so the 1844-12-31
* date-line crossing of Asia/Manila, Pacific/Guam, Saipan, Kosrae and Palau is never found, and
* `GetStartOfDay` for the skipped 1844-12-31 returns the wrong `next`. js-temporal/temporal-polyfill
* #372 (tc39/proposal-temporal#3330). Expected values: Chromium 153 native Temporal.
* `previousGuam` asks from after the floor, so it also proves the backward search reaches past it.
*/
const zonedERepros = [
zonedRepro("zoned.E", "pre1847.nextManila", MANILA_CROSSING, () => Temporal.Instant.from("1800-01-01T00:00:00Z").toZonedDateTimeISO("Asia/Manila").getTimeZoneTransition("next")),
zonedRepro("zoned.E", "pre1847.previousManila", MANILA_CROSSING, () => Temporal.Instant.from("1846-01-01T00:00:00Z").toZonedDateTimeISO("Asia/Manila").getTimeZoneTransition("previous")),
zonedRepro("zoned.E", "pre1847.previousGuam", "1845-01-01T00:00:00+09:39[Pacific/Guam]", () => Temporal.Instant.from("1848-01-01T00:00:00Z").toZonedDateTimeISO("Pacific/Guam").getTimeZoneTransition("previous")),
zonedRepro("zoned.E", "pre1847.hoursInDayManila", "24", () => Temporal.ZonedDateTime.from("1844-12-30T12:00[Asia/Manila]").hoursInDay),
zonedRepro("zoned.E", "pre1847.startOfDayManila", MANILA_CROSSING, () => Temporal.PlainDate.from("1844-12-31").toZonedDateTime("Asia/Manila"))
];
/** More `Intl.DateTimeFormat#formatToParts` reads than this for 1,200 months is per-month work. */
const D9_INTL_READ_LIMIT = 100;
const D9_MONTHS = 1200;
/**
* `run()`'s output, or a note of how many `Intl.DateTimeFormat#formatToParts` calls it made when
* that is more than `D9_INTL_READ_LIMIT`. Polyfill 0.5.1 reads the calendar through that method
* once or more per month stepped; bounded arithmetic reads a handful of dates, or none.
*/
function withBoundedIntlReads(run) {
const prototype = Intl.DateTimeFormat.prototype;
const original = prototype.formatToParts;
let reads = 0;
prototype.formatToParts = function formatToParts(date) {
reads++;
return original.call(this, date);
};
try {
const output = run();
return reads <= D9_INTL_READ_LIMIT ? output : `${reads} Intl reads for ${D9_MONTHS} months`;
} finally {
prototype.formatToParts = original;
}
}
/**
* D9: 1,200 months from month M03 day 5. Persian has 12 months in every year (Intl era/monthCode
* proposal §4.1.4 Table 3), so they are 100 years. Hebrew: the Dershowitz–Reingold month count
* `floor((235y − 234) / 19)` puts month 1,200 after 5784-M03 at 5881 ordinal 3, a common year, so
* `M03`.
*/
const d9Repros = [[
"persian",
1402,
"1502|M03|5"
], [
"hebrew",
5784,
"5881|M03|5"
]].flatMap(([calendar, year, expected]) => {
const start = () => Temporal.PlainDate.from({
calendar,
year,
month: 3,
day: 5
});
const [endYear] = expected.split("|").map(Number);
return [{
defect: "D9",
calendar,
name: "addMonths",
expected,
run: () => withBoundedIntlReads(() => {
const date = start().add({ months: D9_MONTHS });
return `${date.year}|${date.monthCode}|${date.day}`;
})
}, {
defect: "D9",
calendar,
name: "untilMonths",
expected: `P${D9_MONTHS}M`,
run: () => withBoundedIntlReads(() => start().until(Temporal.PlainDate.from({
calendar,
year: endYear ?? NaN,
monthCode: "M03",
day: 5
}), { largestUnit: "months" }).toString())
}];
});
/**
* D21: with `Date.now()` at 1960-01-01T00:00:00Z, the second `Temporal.Now.instant()` reading
* is in 1960. The Temporal proposal defines `Date.now()` as SystemUTCEpochMilliseconds, the floor of
* SystemUTCEpochNanoseconds over 1e6 (spec/temporal.html, spec/mainadditions.html), and
* test262 `built-ins/Temporal/Now/instant/return-value-value.js` asserts a reading is not earlier
* than a `Date.now()` taken before it. Polyfill 0.5.1 carries the previous reading's `ms % 1e6`,
* which is negative before 1970, and reads in 1959. Replaces `Date.now` and restores it.
*/
const d21Repros = [{
defect: "D21",
calendar: "iso8601",
name: "secondReadingAt1960",
expected: "1960",
run: () => {
const original = Date.now;
Date.now = () => -3156192e5;
try {
Temporal.Now.instant();
return String(Temporal.Now.instant().toZonedDateTimeISO("UTC").year);
} finally {
Date.now = original;
Temporal.Now.instant();
}
}
}];
/**
* The recorded inputs of D23 and D24, all `timeZone: "UTC"`. Each is a pattern whose CLDR 48 data
* uses the week-of-year year (UTS #35 Part 4 §8, `Y`) where the calendar year (`y`) is meant.
*/
const weekYearInputs = [
{
name: "gdMonthShortYearEnd",
locale: "gd",
options: {
year: "numeric",
month: "short"
},
date: [
2024,
12,
30
],
expected: "Dùbh 2024"
},
{
name: "kshNumericYearStart",
locale: "ksh",
options: {
year: "numeric",
month: "numeric"
},
date: [
2027,
1,
1
],
expected: "2027-01"
},
{
name: "scNumericYearStart",
locale: "sc",
options: {
year: "numeric",
month: "numeric"
},
date: [
2027,
1,
1
],
expected: "01/2027"
},
{
name: "teBuddhistYearEnd",
locale: "te-u-ca-buddhist",
options: {
year: "numeric",
month: "long"
},
date: [
2026,
12,
31
],
expected: "డిసెంబర్ 2569"
},
{
name: "myJapaneseMidYear",
locale: "my-u-ca-japanese",
options: {
year: "numeric",
month: "numeric",
day: "numeric"
},
date: [
2026,
7,
1
],
expected: "R ၀၁/၀၇/၈"
},
{
name: "glHebrewDateStyleFull",
locale: "gl-u-ca-hebrew",
options: { dateStyle: "full" },
date: [
2026,
9,
12
],
expected: "sábado, 1 de Tishri de 5787 AM"
},
{
name: "deChEraShortYearEnd",
locale: "de-CH",
options: {
era: "short",
year: "numeric",
month: "numeric",
day: "numeric",
weekday: "short"
},
date: [
2024,
12,
30
],
expected: "Mo., 12.30.2024 n. Chr."
}
];
/** The digit runs of a text, in any numbering system, joined by commas: the numbers a pattern prints. */
const digitRunsOf = (text) => (text.match(/\p{Nd}+/gu) ?? []).join(",");
/**
* D24: each input prints the calendar year (ECMA-402 FormatDateTimePattern, `year`: the calendar
* year, or the era year with an era). The value is the numbers the text holds, not its words, so a
* wording change in locale data never reads as the defect. Only `format` is called, so no engine
* can abort on it.
*/
const d24Repros = weekYearInputs.map((input) => ({
defect: "D24",
calendar: "iso8601",
name: input.name,
expected: digitRunsOf(input.expected),
run: () => digitRunsOf(new Intl.DateTimeFormat(input.locale, {
...input.options,
timeZone: "UTC"
}).format(Temporal.PlainDate.from({
year: input.date[0],
month: input.date[1],
day: input.date[2]
}).toZonedDateTime("UTC").epochMilliseconds))
}));
/**
* D23: a component-option formatter resolves a year field for a pattern that holds the week-year.
* V8 without commit 0426b0d1045d resolves `undefined` there and aborts in `formatToParts`, and
* a fixed V8, SpiderMonkey and JavaScriptCore resolve `numeric` (ECMA-402 CreateDateTimeFormat).
* No parts call is made: the canary script confirms the abort in a child process, on Node only.
*/
const d23Repros = [{
defect: "D23",
calendar: "iso8601",
name: "resolvedYearOfWeekYearPattern",
expected: "numeric",
run: () => String(new Intl.DateTimeFormat("gd", {
year: "numeric",
month: "short",
timeZone: "UTC"
}).resolvedOptions().year)
}];
/** The epoch milliseconds of noon UTC on an ISO date, years before 0000 included. */
function noonMs(year, month, day) {
return Temporal.PlainDate.from({
year,
month,
day
}).toZonedDateTime({
timeZone: "UTC",
plainTime: "12:00"
}).epochMilliseconds;
}
/** A UTC `Intl.DateTimeFormat` text at an ISO date. */
function printed(locale, options, date) {
return new Intl.DateTimeFormat(locale, {
...options,
timeZone: "UTC"
}).format(noonMs(date[0], date[1], date[2]));
}
/**
* D25 to D32, text only (`format`), so no engine can abort on a repro. The expected values are the
* specifications': Intl era/monthCode Table 2 as amended by tc39/proposal-intl-era-monthcode#86 and
* test262 tc39/test262#4877 (japanese before 1873-01-01 is Gregorian, and Meiji 6 starts it),
* Table 2 and § 4.1.12 (the islamic calendars have a second era before the Hijra), ECMA-402
* FormatDateTimePattern (`2-digit` pads the era year to two digits; the related year is
* FormatNumeric at full width), Table 2 and 4.1.12 (coptic has one era, `am`, and its era year is
* the year, so ISO -000001-07-10 is -285 AM), Table 2 and 4.1.12 (the era `ah` starts on the whole first
* day of year 1: ISO 0622-07-19, and 0622-07-18 for islamic-tbla).
*/
const yearPrintingRepros = [
{
defect: "D25",
calendar: "iso8601",
name: "japaneseTwoBc",
expected: "2 BC",
run: () => printed("en-u-ca-japanese", {
era: "short",
year: "numeric"
}, [
-1,
7,
10
])
},
{
defect: "D25",
calendar: "iso8601",
name: "japaneseLastGregorianDay",
expected: "1872 AD",
run: () => printed("en-u-ca-japanese", {
era: "short",
year: "numeric"
}, [
1872,
12,
31
])
},
{
defect: "D26",
calendar: "iso8601",
name: "islamicCivilEraBeforeHijra",
expected: "two eras",
run: () => {
const era = (year) => printed("en-u-ca-islamic-civil", {
era: "short",
year: "numeric"
}, [
year,
7,
10
]).replace(/[\p{Nd}\p{Pd}\p{Z}−]/gu, "");
return era(600) === era(2025) ? "one era" : "two eras";
}
},
{
defect: "D31",
calendar: "iso8601",
name: "copticSignedYearAndEraBeforeAm",
expected: "signed year and the era",
run: () => {
const options = {
era: "short",
year: "numeric"
};
const before = printed("en-u-ca-coptic", options, [
-1,
7,
10
]);
const after = printed("en-u-ca-coptic", options, [
2e3,
1,
1
]);
const eraOf = (text) => text.replace(/[\p{Nd}\p{Pd}\p{Z}−]/gu, "");
return before.includes("-285") && eraOf(after) !== "" && eraOf(before) === eraOf(after) ? "signed year and the era" : "unsigned year or no era";
}
},
{
defect: "D32",
calendar: "iso8601",
name: "islamicEraOnEpochDay",
expected: "one era",
run: () => {
const eraOf = (calendar, day, hour) => new Intl.DateTimeFormat(`en-u-ca-${calendar}`, {
era: "short",
year: "numeric",
timeZone: "UTC"
}).format(Temporal.Instant.from(`0622-07-${day}T${String(hour).padStart(2, "0")}:00:00Z`).epochMilliseconds).replace(/[\p{Nd}\p{Pd}\p{Z}−]/gu, "");
return [
["islamic-civil", 19],
["islamic-tbla", 18],
["islamic-umalqura", 19]
].every(([calendar, day]) => eraOf(calendar, day, 0) === eraOf(calendar, day, 23)) ? "one era" : "two eras";
}
},
{
defect: "D34",
calendar: "iso8601",
name: "copticEraOnEpochDay",
expected: "one era",
run: () => {
const eraAt = (hour) => new Intl.DateTimeFormat("en-u-ca-coptic", {
era: "short",
year: "numeric",
timeZone: "UTC"
}).format(Temporal.Instant.from(`0284-08-29T${String(hour).padStart(2, "0")}:00:00Z`).epochMilliseconds).replace(/[\p{Nd}\p{Pd}\p{Z}−]/gu, "");
return eraAt(0) === eraAt(23) ? "one era" : "two eras";
}
},
{
defect: "D27",
calendar: "iso8601",
name: "jaJapaneseTwoDigitEraYear",
expected: "令和06年",
run: () => printed("ja-u-ca-japanese", { year: "2-digit" }, [
2024,
7,
10
])
},
{
defect: "D27",
calendar: "iso8601",
name: "jaJapaneseNumberingSystemYear",
expected: "令和٦年",
run: () => printed("ja-u-ca-japanese-nu-arab", { year: "numeric" }, [
2024,
7,
10
])
},
{
defect: "D28",
calendar: "iso8601",
name: "chineseRelatedYearFullWidth",
expected: "5",
run: () => /\p{Nd}+/u.exec(printed("en-u-ca-chinese", { year: "2-digit" }, [
5,
7,
10
]))?.[0] ?? ""
},
{
defect: "D30",
calendar: "iso8601",
name: "islamicResolvesTbla",
expected: "islamic-tbla",
run: () => new Intl.DateTimeFormat("en-u-ca-islamic").resolvedOptions().calendar
},
{
defect: "D30",
calendar: "iso8601",
name: "islamicRgsaIsIgnored",
expected: "not islamic-rgsa",
run: () => new Intl.DateTimeFormat("en-u-ca-islamic-rgsa").resolvedOptions().calendar === "islamic-rgsa" ? "islamic-rgsa" : "not islamic-rgsa"
}
];
/**
* D29, text only (`format`, `formatRange`): each case is a range the engine must print with every
* field of both dates (ECMA-402 PartitionDateTimeRangePattern; UTS #35 Part 4, Interval Formats).
* The value is `complete`, or the engine's own range text when it is not.
*/
const rangeFieldRepros = rangeFieldCases.map((c) => ({
defect: "D29",
calendar: "iso8601",
name: c.name,
expected: "complete",
run: () => rangeFieldProblem(c.locale, c.options, c.from, c.to)
}));
/**
* D33: known Chinese and Dangi text answers, the host's `Intl.DateTimeFormat` (`relatedYear|day` of a
* UTC-noon instant; month text is left out because ICU 78 prints `6bis` and `Mo12` where older ICU
* prints `6` and `12`). The values are the Intl era/monthCode proposal's (section 1.1 Table 1:
* `chinese` follows Purple Mountain Observatory data, `dangi` Korea Astronomy and Space Science
* Institute data). Chinese rows are checked against the Hong Kong Observatory Gregorian-Lunar
* Calendar Conversion Table (computed to GB/T 33661-2017), Dangi rows against the KASI lunar-solar
* conversion service, and every row against native Temporal (ICU4X). `isLunisolarTextCompatNeeded`
* (`capabilities.ts`) reads the same rows.
*/
const d33TextRows = [
[
"chineseNewYear2027Text",
"chinese",
"2027-02-06",
"2027|1"
],
[
"chineseLastDay2029Text",
"chinese",
"2030-02-02",
"2029|30"
],
[
"chineseNewYear2030Text",
"chinese",
"2030-02-03",
"2030|1"
],
[
"chineseNinthMonthEnd2018Text",
"chinese",
"2018-11-07",
"2018|30"
],
[
"dangiSecond2017Text",
"dangi",
"2017-02-26",
"2017|1"
],
[
"dangiNewYear2027Text",
"dangi",
"2027-02-07",
"2027|1"
]
];
/** The related year (the year when none is printed) and day of a UTC-noon date in `calendar`. */
function printedRelatedYearAndDay(calendar, iso) {
const [year, month, day] = [
Number(iso.slice(0, 4)),
Number(iso.slice(5, 7)),
Number(iso.slice(8, 10))
];
const parts = new Intl.DateTimeFormat(`en-u-ca-${calendar}`, {
year: "numeric",
month: "numeric",
day: "numeric",
timeZone: "UTC"
}).formatToParts(noonMs(year, month, day));
const value = (type) => parts.find((part) => part.type === type)?.value;
return `${value("relatedYear") ?? value("year")}|${value("day")}`;
}
const d33Repros = [...d33TextRows.map(([name, calendar, iso, expected]) => ({
defect: "D33",
calendar,
name,
expected,
run: () => printedRelatedYearAndDay(calendar, iso)
}))];
const repros = [
...d21Repros,
...d23Repros,
...d24Repros,
...yearPrintingRepros,
...rangeFieldRepros,
...d33Repros,
...d9Repros,
...zonedARepros,
...zonedBRepros,
...zonedDRepros,
...zonedERepros,
...probeReproGroups.d1,
...probeReproGroups.d1Arithmetic,
...probeReproGroups.d1RelativeTo,
...probeReproGroups.d10,
...probeReproGroups.d12,
...probeReproGroups.d13,
...probeReproGroups.d14,
...probeReproGroups.d15,
...probeReproGroups.d16,
...probeReproGroups.d17,
...probeReproGroups.d18,
...probeReproGroups.d19,
...probeReproGroups.d22,
...probeReproGroups.d6,
...probeReproGroups.d7,
...probeReproGroups.reads
];
/** The repro with this defect, calendar and name, if any. */
function findRepro(defect, calendar, name) {
return repros.find((repro) => repro.defect === defect && repro.calendar === calendar && repro.name === name);
}
export { findRepro, repros };