-
Notifications
You must be signed in to change notification settings - Fork 112
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
Infinite loop when removing in empty string. #280
Comments
Would you like to send a quick PR? Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When using a negative index to remove, it will cause infinite loop.
https://stackblitz.com/edit/stackblitz-starters-qxzkza?file=index.js
To reproduce it, run
node index.js
in the terminal.Expect behaviour
it should throw error: Character is out of bounds
The text was updated successfully, but these errors were encountered: