-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't recover from infinite loops #35
Comments
That wouldn't really help since the loop will block the event loop. The |
Ah.. right. Is there enough support for webworkers across browsers that it would be reasonable to use them? |
This is actually pretty annoying, while writing a completely safe for loop it's easy to cause an infinite loop and crash the tab. For example this puts you in an un-recoverable state if there's any valid statement after it.
|
This should be solved now with #39. |
For example, just write
while(true);
in the transform script and the whole browser will freeze when the code is run.(practically I ran into this by introducing some accidental infinite recursion)
Instead of solving the halting problem, it would be cool if we just put a timeout on the transform and killed it after 30 seconds or so.
The text was updated successfully, but these errors were encountered: