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: Clamp size before using with "substring of" #3400

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

gibson042
Copy link
Contributor

Fixes #3261

Copy link
Member

@michaelficarra michaelficarra left a comment

Choose a reason for hiding this comment

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

LGTM. Editorial because substring behaviour is not defined for bounds beyond the ends of the string.

@michaelficarra michaelficarra added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Aug 23, 2024
@ljharb ljharb force-pushed the gh-3261-clamp-substring-length branch from 49b61b2 to 815aa8a Compare August 26, 2024 18:16
@ljharb ljharb merged commit 815aa8a into tc39:main Aug 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land. spec bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"substring of" used with potentially out of bounds end in String.prototype.split()
4 participants