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

editorial: refactor GetModuleSource() to instead use [[ModuleSource]] field #69

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

guybedford
Copy link
Collaborator

@guybedford guybedford commented Nov 30, 2024

This specifies #68, effectively upstreaming the [[ModuleSource]] field from ESM Phase Imports for all abstract module sources.

Overall this does seem to provide for simpler spec text.

This moves the SyntaxError from being host-defined into being a generic ECMA-262 syntax error, but this also seems a nicer simplification, and also possible to classify as editorial.

Leaving this open pending further discussion about this.

@guybedford guybedford force-pushed the getmodulesource-modulesource branch from 7afb8ae to 1a619df Compare November 30, 2024 22:58
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

This seems to be 100% editorial.

I left a comment about a bug, but it also applies to the text before this PR.

spec.emu Outdated Show resolved Hide resolved
guybedford and others added 2 commits December 1, 2024 12:18
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
@guybedford
Copy link
Collaborator Author

Thanks, added your wording correction. That is indeed a bug in the wording for host implementations although it's been implemented correctly in the Wasm ESM integration spec.

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