ecma262
ecma262 copied to clipboard
Normative: Update GetSubstitution to match reality
$nn patterns fall back to $n when there aren't at least nn captures
Fixes gh-1426
Preview: https://deploy-preview-1732--ecma262-snapshots.netlify.com/#sec-getsubstitution
is this still a thing?
I believe so - it needs test262 tests, a rebase, and an updated review.
I'm planning to rebase and update this PR after #2021 lands.
@gibson042 #2021 has landed, do you want to rebase this?
Yep, it should be done this week.
I think this already has tests, actually, or at least one test, as pointed out in the original issue.
Replaced by #3157.