Skip to content

Conversation

@xiaoyinl
Copy link
Contributor

Sorry I forgot to update parseISO.baseline again for the latest Date.parse changes in PR #4318.

Related #4543

PR #4318 updates how Date.parse handles padded years, but parseISO.baseline
wasn't updated to reflect this change, causing some test failures.
@dilijev
Copy link
Contributor

dilijev commented Jan 18, 2018

Ah, thanks. Would have missed this until the next nightly bug landed on my plate :)

Copy link
Contributor

@dilijev dilijev left a comment

Choose a reason for hiding this comment

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

LGTM

@dilijev
Copy link
Contributor

dilijev commented Jan 18, 2018

I was wondering about these lines when I last updated the baseline -- what I found was that we and d8 both do the unintuitive thing and the others just fail:

## Source
print(new Date(Date.parse('0001-02-03Z')).toISOString())

┌──────────┬──────────────────────────┐
│ jsvu-ch  │ 2003-01-02T00:00:00.000Z │
│ jsvu-d8  │                          │
├──────────┼──────────────────────────┤
│ jsvu-sm  │                          │
│          │ RangeError: invalid date │
├──────────┼──────────────────────────┤
│ jsvu-jsc │                          │
│          │ RangeError: Invalid Date │
└──────────┴──────────────────────────┘

This new behavior certainly makes more sense, especially from the perspective of treating strings that match /\d{4}-\d{2}-\d{2}/ as an ISO date format.

@chakrabot chakrabot merged commit ea7f37e into chakra-core:release/1.8 Jan 18, 2018
chakrabot pushed a commit that referenced this pull request Jan 18, 2018
Merge pull request #4571 from xiaoyinl:isobaseline

Sorry I forgot to update parseISO.baseline again for the latest Date.parse changes in PR #4318.

Related #4543
chakrabot pushed a commit that referenced this pull request Jan 18, 2018
Merge pull request #4571 from xiaoyinl:isobaseline

Sorry I forgot to update parseISO.baseline again for the latest Date.parse changes in PR #4318.

Related #4543
chakrabot pushed a commit that referenced this pull request Jan 18, 2018
…ne for PR #4318

Merge pull request #4571 from xiaoyinl:isobaseline

Sorry I forgot to update parseISO.baseline again for the latest Date.parse changes in PR #4318.

Related #4543
@xiaoyinl xiaoyinl deleted the isobaseline branch January 20, 2018 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants