chinchang / chinchang/web-maker
If there is some alert in JavaScript loop and you haven't saved the project... it's the end of world
Open
bug
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 323
- PR merge metrics
- No merged PRs in 30d
Description
Say you write a function like this:
```
function test(x){
// if you call this by mistake and pass some
// very big "x" to it. You'll never escape from
// the endless alert box.
for (var i = 0; i 10) {
console.log('will not alert anymore! saved you!');
} else {
window.alertBackup(x)
}
}
for (var i=0; i<500; i++) {alert(5)}
```
Hope it would save people's lives.
Contributor guide
Assessment
This issue has not been assessed yet.