-
Notifications
You must be signed in to change notification settings - Fork 107
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
Make module loading stack safe #145
Comments
Closed by 7dbd5aa, before we forget about this and become baffled. Noticed this for reals today when lowering the default gas, and We should move all imports over to explicitly use |
Does this actually suffice? Now that this is async, presumably there's a |
If by timeouts, you mean RequireJS timeouts, then I think this is fine. RequireJS is all about loading the compiled JS. This is for when modules get instantiated (maybe I should have said that instead of "load" in the commit message), so it happens after RJS has done its thing. |
I might mean jasmine timeouts, I'm not sure. The point is that the bodies Asked another way, what remaining parts of the "scaffolding" of our |
Single-module execution is stack safe, but if a module blows the stack while loading, it can fail to load.
This isn't a common use case, but we need to handle it.
To handle it, we need to change the compiler to, instead of simply importing modules with:
We need to do a light CPS and make this be instead:
The text was updated successfully, but these errors were encountered: