Skip to content
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

Add dynamic import.defer() syntax to mirror import.source() #28

Merged
merged 3 commits into from
Jan 19, 2024

Conversation

nicolo-ribaudo
Copy link
Member

cc @acutmore since you mentioned this the other day :)

@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Jan 16, 2024
10 tasks
spec.emu Outdated
1. Perform ! Call(_promiseCapability_.[[Resolve]], *undefined*, « _namespace_ »).
1. Return ~unused~.
1. <ins>If _phase_ is ~defer~, then</ins>
1. <ins>Perform _fulfilledClosure_().</ins>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably missing this as I'm nowhere near as familiar with this flow as you are, but I'm missing that part where we do GatherAsynchronousTransitiveDependencies and evaluate those before fulfilling this promise.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are missing it as it's indeed missing 😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@nicolo-ribaudo nicolo-ribaudo merged commit 8ca681d into tc39:main Jan 19, 2024
@nicolo-ribaudo nicolo-ribaudo deleted the dynamic-import-syntax branch January 19, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants