chinchang / chinchang/web-maker

Multiple alerts do not work inside loop

Open
#95 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2.7k
Forks
323
PR merge metrics
No merged PRs in 30d

Description

```
for (var i = 0; i < 3; i++) { alert(i); }
```
will only show 1 alert.

Reason: Due to `alert`, the time taken inside loop is too long, enough to be detected as an infinite loop and hence loop breaks after 1st alert.

https://twitter.com/vikrant_negi/status/846270825800126464

Contributor guide

Open the contributing guide

Research direction

Reproduce the provided for-loop in Web Maker and trace the execution path that detects infinite loops; the issue names no file or test. Done means the exact snippet produces three alerts without being stopped after the first, with a regression check for this behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
devtools, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.