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

Editorial: Generalize the note about when StringIndexOf is guaranteed to return -1 #2950

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

gibson042
Copy link
Contributor

@gibson042 gibson042 commented Oct 29, 2022

String contents don't matter any time fromIndex + searchValue.length > string.length, not just when fromIndex exceeds the length on its own.

@michaelficarra michaelficarra added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Nov 2, 2022
@ljharb ljharb force-pushed the 2022-10-stringindexof-bounds branch from d69c9a9 to 8410f1b Compare November 4, 2022 06:09
@ljharb ljharb merged commit 8410f1b into tc39:main Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Editors believe this PR needs no further reviews, and is ready to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants