mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 08:54:35 +02:00
Fix Temporal.PlainDateTime.withPlainDate tests
I suggested in #3517 that these lines should be removed but didn't realize they must be present because TemporalHelpers.assertPlainDateTime is going to check the 'era' and 'eraYear' properties.
This commit is contained in:
parent
0a48029333
commit
2a03068b84
@ -10,6 +10,8 @@ includes: [temporalHelpers.js]
|
|||||||
|
|
||||||
const cal = {
|
const cal = {
|
||||||
id: 'thisisnotiso',
|
id: 'thisisnotiso',
|
||||||
|
era() { return undefined; },
|
||||||
|
eraYear() { return undefined; },
|
||||||
toString() { return "this is a string"; },
|
toString() { return "this is a string"; },
|
||||||
year() { return 2008; },
|
year() { return 2008; },
|
||||||
month() { return 9; },
|
month() { return 9; },
|
||||||
|
@ -13,6 +13,8 @@ const cal1 = {
|
|||||||
};
|
};
|
||||||
const cal2 = {
|
const cal2 = {
|
||||||
id: 'thisisnotiso',
|
id: 'thisisnotiso',
|
||||||
|
era() { return undefined; },
|
||||||
|
eraYear() { return undefined; },
|
||||||
toString() { return "this is a string"; },
|
toString() { return "this is a string"; },
|
||||||
year() { return 2008; },
|
year() { return 2008; },
|
||||||
month() { return 9; },
|
month() { return 9; },
|
||||||
|
@ -11,6 +11,8 @@ includes: [temporalHelpers.js]
|
|||||||
let calls = 0;
|
let calls = 0;
|
||||||
const cal = {
|
const cal = {
|
||||||
id: 'thisisnotiso',
|
id: 'thisisnotiso',
|
||||||
|
era() { return undefined; },
|
||||||
|
eraYear() { return undefined; },
|
||||||
toString() {
|
toString() {
|
||||||
++calls;
|
++calls;
|
||||||
return "this is a string";
|
return "this is a string";
|
||||||
|
@ -10,6 +10,8 @@ includes: [temporalHelpers.js]
|
|||||||
|
|
||||||
const cal = {
|
const cal = {
|
||||||
id: 'thisisnotiso',
|
id: 'thisisnotiso',
|
||||||
|
era() { return undefined; },
|
||||||
|
eraYear() { return undefined; },
|
||||||
toString() { return "this is a string"; },
|
toString() { return "this is a string"; },
|
||||||
year() { return 2008; },
|
year() { return 2008; },
|
||||||
month() { return 9; },
|
month() { return 9; },
|
||||||
|
@ -10,6 +10,8 @@ includes: [temporalHelpers.js]
|
|||||||
|
|
||||||
const cal = {
|
const cal = {
|
||||||
id: "thisisnotiso",
|
id: "thisisnotiso",
|
||||||
|
era() { return undefined; },
|
||||||
|
eraYear() { return undefined; },
|
||||||
toString() { return "this is a string"; },
|
toString() { return "this is a string"; },
|
||||||
year() { return 2008; },
|
year() { return 2008; },
|
||||||
month() { return 9; },
|
month() { return 9; },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user