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

Hide .then and always trigger evaluation on exports list lookup #53

Merged

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Nov 11, 2024

This PR solves the problems outlined during last plenary, with the less bad approach (i.e. deferred namespace objects do not have a .then property, regardless of what the module exports, and so accessing it gives a known result without evaluating the module).

There is still a pending change to distinguish namespaces that could trigger evaluation from those that cannot.

Closes #49, closes #55, closes #56

@guybedford
Copy link
Collaborator

This seems like a sensible compromise given the constraints.

@nicolo-ribaudo nicolo-ribaudo changed the title Hide .then and consistently trigger evaluation Hide .then and consistently trigger evaluation on exports list lookup Nov 13, 2024
@nicolo-ribaudo nicolo-ribaudo marked this pull request as ready for review November 22, 2024 16:19
@nicolo-ribaudo nicolo-ribaudo force-pushed the hide-then-and-consistent-trigger branch from 4731481 to ebb6ed4 Compare December 9, 2024 11:17
@nicolo-ribaudo nicolo-ribaudo changed the title Hide .then and consistently trigger evaluation on exports list lookup Hide .then and always trigger evaluation on exports list lookup Dec 9, 2024
@nicolo-ribaudo nicolo-ribaudo merged commit 813819b into tc39:main Dec 9, 2024
@nicolo-ribaudo nicolo-ribaudo deleted the hide-then-and-consistent-trigger branch December 9, 2024 11:30
@nicolo-ribaudo
Copy link
Member Author

All the changes in this PR got consensus at the Dec 2024 TC39 meeting.

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.

2 participants