Re:Show HN: Scratch.js – Interactive JavaScript Scratchpad
by mattigames on Wednesday November 18, 2020 @01:50PM
(#25140731)
You could modify the AST tree using something like jscodeshift to add a function that is called in every loop (and maybe every function) and there you can "break" the loop in a pretty clean way.
[ Parent
| on HN ]
Re:Show HN: Scratch.js – Interactive JavaScript Scratchpad
by protoduction on Wednesday November 18, 2020 @01:54PM
(#25140782)
A determined user will still be able to figure out something that blocks forever, for instance run a WASM program that has an infinite loop in it.