Skip to content

Conversation

@guybedford
Copy link
Collaborator

In the ESM Phase Imports proposal, we ended up refactoring the HostGetModuleSourceName host call (which takes a module source object, and returns its type name) to instead be a HostGetModuleSourceModuleRecord to get a module record from a module source object, and then separately call a new GetModuleSourceKind() abstract method on this module record.

Leaving this hostcall refactoring for progression of the ESM Phase Imports can be avoided by fully upstreaming this change already now in the source phase imports proposal as a refactoring non-normative editorial change, down to the hostcall structure changing of course.

This mirrors the [[ModuleSource]] internal slot case and closes the loop on bi-directional referencing between module source objects and their underlying module records.

@guybedford guybedford merged commit a844e0e into main Feb 7, 2025
1 check passed
@guybedford guybedford deleted the upstream-host-get-module-source-module-record branch February 7, 2025 23:53
guybedford pushed a commit to guybedford/ecma262 that referenced this pull request Feb 11, 2025
@guybedford
Copy link
Collaborator Author

This was updated for the ESM Integration in WebAssembly/esm-integration#98.

guybedford pushed a commit to guybedford/ecma262 that referenced this pull request Oct 6, 2025
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.

3 participants