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

Use the AOs introduced by the modules host hooks refactor #75

Merged
merged 2 commits into from
Oct 20, 2022

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Sep 20, 2022

This PR rewrites the proposal on top of tc39/ecma262#2905. While the syntax has not changed (it has been indented; you can disable whitespace diff when reviewing), the runtime algorithms have been rewritten from scratch.

I'm marking this as draft, since tc39/ecma262#2905 hasn't been properly reviewed yet.

Readable version: https://raw.githack.com/tc39/proposal-js-module-blocks/aecaef48e8245def3af5c219767cfd419b27a379/index.html

@nicolo-ribaudo nicolo-ribaudo force-pushed the use-new-hooks branch 3 times, most recently from 34d0247 to d4f1857 Compare September 20, 2022 11:31
spec.emu Outdated
<h1>Runtime Semantics: Evaluation</h1>
<emu-grammar>ModuleBlockExpression: `module` `{` ModuleBody `}`</emu-grammar>
<emu-alg>
1. Let _moduleBlock_ be OrdinaryObjectCreate(%ModuleBlock.prototype%, &laquo; [[ModuleRecord]], [[SourceText]] &raquo;).
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the proposal just needs to be made compatible with the compartments one. I plan to do as soon as this is merged.

@nicolo-ribaudo nicolo-ribaudo marked this pull request as ready for review October 20, 2022 15:38
@nicolo-ribaudo
Copy link
Member Author

tc39/ecma262#2905 hasn't been merged yet, but I added an ecma262-biblio.json file so that the spec text in this PR gets properly linked to the new AOs/hooks defined by that PR.

This PR can be reviewed; it might be easier to review it at https://raw.githack.com/tc39/proposal-js-module-blocks/aecaef48e8245def3af5c219767cfd419b27a379/index.html (as if it was a completely new spec) rather than as a diff.

@nicolo-ribaudo nicolo-ribaudo merged commit ecfe808 into tc39:main Oct 20, 2022
@nicolo-ribaudo nicolo-ribaudo deleted the use-new-hooks branch October 20, 2022 17:21
@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Oct 21, 2022
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