-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Normative: Update GetSubstitution to match reality #3157
Normative: Update GetSubstitution to match reality #3157
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise.
This appears to already have a test: https://github.com/tc39/test262/blob/1a0b9d23f241abc2f0abf73cc397f3390c7d9960/test/built-ins/String/prototype/replace/S15.5.4.11_A3_T1.js |
I guess we should also have a test for when the first digit alone still exceeds the number of captures, like |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
$nn patterns fall back to $n when there aren't at least nn captures Fixes tc39#1426
1e0e4c8
to
5eaee2f
Compare
$nn patterns fall back to $n when there aren't at least nn captures Fixes tc39#1426
$nn patterns fall back to $n when there aren't at least nn captures
Fixes gh-1426
test262 PR: tc39/test262#3931