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

assert: handle sparse arrays in deepStrictEqual #15027

Closed
wants to merge 1 commit into from

Conversation

BridgeAR
Copy link
Member

Detect sparse array ends and add a fail early path for
unequal array length.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

assert

Detect sparse array ends and add a fail early path for
unequal array length.
@nodejs-github-bot nodejs-github-bot added the assert Issues and PRs related to the assert subsystem. label Aug 25, 2017
@BridgeAR
Copy link
Member Author

Copy link
Member

@Trott Trott left a comment

Choose a reason for hiding this comment

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

LGTM as long as CI doesn't reveal anything unexpected.

@BridgeAR
Copy link
Member Author

BridgeAR commented Aug 25, 2017

Note: If anyone wonders - sparse arrays are already compared right now besides the case where the hole is at the end of the array. Therefore this is just a simple bug fix.

@BridgeAR
Copy link
Member Author

Landed in 4381100

@BridgeAR BridgeAR closed this Aug 29, 2017
BridgeAR added a commit that referenced this pull request Aug 29, 2017
Detect sparse array ends and add a fail early path for
unequal array length.

PR-URL: #15027
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
ghost pushed a commit to ayojs/ayo that referenced this pull request Aug 30, 2017
Detect sparse array ends and add a fail early path for
unequal array length.

PR-URL: nodejs/node#15027
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
ghost pushed a commit to ayojs/ayo that referenced this pull request Aug 30, 2017
Detect sparse array ends and add a fail early path for
unequal array length.

PR-URL: nodejs/node#15027
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
cjihrig pushed a commit to cjihrig/node that referenced this pull request Aug 31, 2017
Detect sparse array ends and add a fail early path for
unequal array length.

PR-URL: nodejs#15027
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
MylesBorins pushed a commit that referenced this pull request Sep 10, 2017
Detect sparse array ends and add a fail early path for
unequal array length.

PR-URL: #15027
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@MylesBorins MylesBorins mentioned this pull request Sep 10, 2017
MylesBorins pushed a commit that referenced this pull request Sep 12, 2017
Detect sparse array ends and add a fail early path for
unequal array length.

PR-URL: #15027
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@MylesBorins
Copy link
Contributor

This does not land cleanly in LTS. Please feel free to manually backport by following the guide. Please also feel free to replace do-not-land if it is being backported

@BridgeAR BridgeAR deleted the assert-sparse-arrays branch April 1, 2019 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert Issues and PRs related to the assert subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants