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

Fix tests for node 11 #28108

Merged
merged 1 commit into from Oct 24, 2018
Merged

Fix tests for node 11 #28108

merged 1 commit into from Oct 24, 2018

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Oct 24, 2018

  1. Sort is now stable in node 11, which exposed a lack in the sorting of nested ranges. Ranges now sort based on last ending if the start positions are the same. This means nested ranges sort the containing range first, even if a range contains another range that starts at the same position.
  2. Symbol has a new member, description, which can't be accessed through the prototype. In addition, Array now has flat and flatMap, which I excluded to keep baselines the same between Node 6-11.

Fixes the build break on Node 11.

1. Sort is now stable in node 11, which exposed a lack in the sorting of
nested ranges. Ranges now sort based on last ending if the start
positions are the same. This means nested ranges sort the
containing range first, even if a range contains another range that
starts at the same position.
2. Symbol has a new member description which can't be accessed through
the prototype. In addition, Array now has flat and flatMap, which I
excluded to keep baselines the same between Node 6-11.
@sandersn sandersn requested review from a user and rbuckton October 24, 2018 19:43
@ghost
Copy link

ghost commented Oct 24, 2018

Potentially related: #28082

@sandersn sandersn mentioned this pull request Oct 24, 2018
@sandersn sandersn merged commit 0db3038 into master Oct 24, 2018
@sandersn sandersn deleted the update-baselines-for-node-11 branch October 24, 2018 20:03
@sandersn
Copy link
Member Author

Note that release-3.1 is also failing. I'll go ahead and port this change there too.

sandersn added a commit that referenced this pull request Oct 24, 2018
1. Sort is now stable in node 11, which exposed a lack in the sorting of
nested ranges. Ranges now sort based on last ending if the start
positions are the same. This means nested ranges sort the
containing range first, even if a range contains another range that
starts at the same position.
2. Symbol has a new member description which can't be accessed through
the prototype. In addition, Array now has flat and flatMap, which I
excluded to keep baselines the same between Node 6-11.
@sandersn
Copy link
Member Author

This is in release 3.1 now too.

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.

None yet

1 participant