Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move testing of era/eraYear under intl402 #3517

Merged
merged 2 commits into from
May 3, 2022
Merged

Conversation

FrankYFTang
Copy link
Contributor

Temporal.PlainDateTime.prototype.ear and earYear are not defined in first 14 chapters and only defined under Chapter 15. Therefore they should always return undefined unless it is an intl implementation.

Copy the same test to intl402 and remove the non undefined value of era/eraYear from the built-ints version of test.

Fix #3516
Also see tc39/proposal-temporal#2169

@FrankYFTang FrankYFTang requested a review from ptomato May 3, 2022 17:59
Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks.

@ptomato ptomato merged commit 06fafd7 into tc39:main May 3, 2022
@FrankYFTang FrankYFTang deleted the mvEraTests branch May 3, 2022 18:23
ptomato added a commit to ptomato/test262 that referenced this pull request May 4, 2022
I suggested in tc39#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.
Ms2ger pushed a commit that referenced this pull request May 5, 2022
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.
catamorphism pushed a commit to nicolo-ribaudo/test262 that referenced this pull request May 30, 2022
* Move testing of era/eraYear under intl402

* remove era/eraYear from built-in tests.
catamorphism pushed a commit to nicolo-ribaudo/test262 that referenced this pull request May 30, 2022
I suggested in tc39#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problems of verifying era/eraYear in Temporal tests localted under test/built-ins
2 participants