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
#312 1 comment 2 reactions 1 assignee Claimed by @chinchang View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.