Y
Hacker News
new
|
ask
|
show
|
jobs
by
mattigames
2043 days ago
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.
1 comments
protoduction
2043 days ago
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.
link