Skip to content

Commit 6f55d0c

Browse files
JLHwungptomato
authored andcommitted
[Temporal] Avoid legacy octal usage
1 parent f85c951 commit 6f55d0c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

test/built-ins/Temporal/PlainDate/compare/no-fractional-minutes-hours.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const invalidStrings = [
1515
for (const [arg, description] of invalidStrings) {
1616
assert.throws(
1717
RangeError,
18-
() => Temporal.PlainDate.compare(arg, new Temporal.PlainDate(2025, 04, 03)),
18+
() => Temporal.PlainDate.compare(arg, new Temporal.PlainDate(2025, 4, 3)),
1919
`${description} not allowed in time string (first argument)`
2020
);
2121
assert.throws(
2222
RangeError,
23-
() => Temporal.PlainDate.compare(new Temporal.PlainDate(2025, 04, 03), arg),
23+
() => Temporal.PlainDate.compare(new Temporal.PlainDate(2025, 4, 3), arg),
2424
`${description} not allowed in time string (second argument)`
2525
);
2626
}

test/built-ins/Temporal/PlainDateTime/compare/no-fractional-minutes-hours.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const invalidStrings = [
1515
for (const [arg, description] of invalidStrings) {
1616
assert.throws(
1717
RangeError,
18-
() => Temporal.PlainDateTime.compare(arg, new Temporal.PlainDateTime(2025, 04, 03, 20, 04, 03)),
18+
() => Temporal.PlainDateTime.compare(arg, new Temporal.PlainDateTime(2025, 4, 3, 20, 4, 3)),
1919
`${description} not allowed in time string (first argument)`
2020
);
2121
assert.throws(
2222
RangeError,
23-
() => Temporal.PlainDateTime.compare(new Temporal.PlainDateTime(2025, 04, 03, 20, 04, 03), arg),
23+
() => Temporal.PlainDateTime.compare(new Temporal.PlainDateTime(2025, 4, 3, 20, 4, 3), arg),
2424
`${description} not allowed in time string (second argument)`
2525
);
2626
}

test/built-ins/Temporal/PlainTime/compare/no-fractional-minutes-hours.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const invalidStrings = [
1515
for (const [arg, description] of invalidStrings) {
1616
assert.throws(
1717
RangeError,
18-
() => Temporal.PlainTime.compare(arg, new Temporal.PlainTime(20, 04, 03)),
18+
() => Temporal.PlainTime.compare(arg, new Temporal.PlainTime(20, 4, 3)),
1919
`${description} not allowed in time string (first argument)`
2020
);
2121
assert.throws(
2222
RangeError,
23-
() => Temporal.PlainTime.compare(new Temporal.PlainTime(20, 04, 03), arg),
23+
() => Temporal.PlainTime.compare(new Temporal.PlainTime(20, 4, 3), arg),
2424
`${description} not allowed in time string (second argument)`
2525
);
2626
}

test/built-ins/Temporal/PlainYearMonth/compare/no-fractional-minutes-hours.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const invalidStrings = [
1515
for (const [arg, description] of invalidStrings) {
1616
assert.throws(
1717
RangeError,
18-
() => Temporal.PlainYearMonth.compare(arg, new Temporal.PlainYearMonth(2025, 04)),
18+
() => Temporal.PlainYearMonth.compare(arg, new Temporal.PlainYearMonth(2025, 4)),
1919
`${description} not allowed in time string (first argument)`
2020
);
2121
assert.throws(
2222
RangeError,
23-
() => Temporal.PlainYearMonth.compare(new Temporal.PlainYearMonth(2025, 04), arg),
23+
() => Temporal.PlainYearMonth.compare(new Temporal.PlainYearMonth(2025, 4), arg),
2424
`${description} not allowed in time string (second argument)`
2525
);
2626
}

0 commit comments

Comments
 (0)