We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using a negative index to remove, it will cause infinite loop.
const magicString = require('magic-string'); let s = "" let ms = new magicString(s); ms.remove(-2, -1); console.log(map);
https://stackblitz.com/edit/stackblitz-starters-qxzkza?file=index.js
To reproduce it, run node index.js in the terminal.
node index.js
it should throw error: Character is out of bounds
The text was updated successfully, but these errors were encountered:
Would you like to send a quick PR? Thanks!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
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: