-
Notifications
You must be signed in to change notification settings - Fork 106
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: update for String{,Last}IndexOf returning not-found #875
Conversation
Updated the biblio; this is ready for review/landing. |
This looks entirely good to me. Note, though: As a result of changes made in #840, merging the changes in |
@ben-allen looks like |
The It's set to -1 before the loop and compared to -1 after the loop so that |
Ah. In that case it should use a different value than |
Ah, brilliant — changing now |
Ah, hm, it didn't occur to me that this does mess up the first line of the loop.
I guess using -1 is fine and just updating the assert. |
Apologies for all the fixups! Here's a rewritten version using |
That version of |
Go for it. |
FWIW, I think it would be more readable for placeholderEnd to still be initialized to -1 and remain integer-valued.
|
Upon consideration, I'm given to agree. My line of reasoning is roughly "Which is more potentially annoying to an implementer? The use of -1 instead of something self-documenting, or the additional tests for |
914bbef
to
51c453a
Compare
Update for tc39/ecma262#3300.
Marked as draft until that lands; I will update this PR to pull in the extra biblio when it does (though the type-checking isn't yet able to do anything with that).I've pulled in the biblio for that PR.I'm not absolute sure about the changes PartitionPattern and PartitionNotationSubPattern and would appreciate extra scrutiny there.