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 stable sorting on node 11.6.0 #1253

Merged
merged 1 commit into from
Jan 14, 2019
Merged

fix stable sorting on node 11.6.0 #1253

merged 1 commit into from
Jan 14, 2019

Conversation

missinglink
Copy link
Member

unit tests are failing on node 11.6.0 due to unstable sorting, this PR fixes the issue and tests pass on both 10 & 11 now.

@missinglink missinglink merged commit c0de63b into master Jan 14, 2019
@orangejulius
Copy link
Member

nice

@orangejulius
Copy link
Member

Wait, can you explain how this fixes the problem? Node.js 11 includes v8 version 7 which changes Array.prototype.sort to be stable by default. So my understanding is that using the stable NPM package should not be needed in Node.js 11.

@orangejulius orangejulius deleted the stable_sort branch January 14, 2019 19:24
@orangejulius
Copy link
Member

@missinglink I came across this again and was wondering if you could chime in with how this fixes things, as I mentioned in my last comment, before we forget everything about it.

@missinglink
Copy link
Member Author

honestly, I'm not really sure, I was working on another issue when I discovered this error.

so I just quickly fixed it and got back to the original task.

@missinglink
Copy link
Member Author

Is it possible that the stable sorting algorithms are different between core and the stable module?

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.

2 participants