-
Notifications
You must be signed in to change notification settings - Fork 45
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
Loader.install should resolve pending imports #48
Comments
@caridy I think this should be labeled a bug. This problem means This same bug existed in the old System.set/System.define form and it made them effectively unusable. |
I will look into the details next week. |
This may have been fixed along the way as @caridy has been cleaning up the pipeline logic. He's currently working on a refactor of how the pipeline is represented (see PR #91). The semantics should be carefully ensuring there's only ever one promise stored for each stage, and we should only ever cancel an earlier stage's promise after a later stage has already been resolved. So I don't see off the top of my head how this bug would come up. But let's revisit it after the PR lands. |
You meant "now fixed", right? |
jejeje, yes! fixed. |
This was a bug in the old spec and appears to still be present. Consider this code:
This creates a race condition where if
main.js
passes throughresolve
beforeloader.install
is called it will continue through the loading steps and (I believe) fail an assertion in linking.Is
loader.cancel
intended to fix this issue?The text was updated successfully, but these errors were encountered: