Skip to content

fix(compartment-mapper,bundle-source): async parser support#3186

Open
boneskull wants to merge 3 commits intomasterfrom
boneskull/async-parser
Open

fix(compartment-mapper,bundle-source): async parser support#3186
boneskull wants to merge 3 commits intomasterfrom
boneskull/async-parser

Conversation

@boneskull
Copy link
Copy Markdown
Member

@boneskull boneskull commented Apr 16, 2026

This fixes the half-implemented type defs and support for async parsers by introducing AsyncParserImplementation.

We needed sync-and-async-specific parse-mappers in map-parser.js and some type guards.

A sync-parser-specific SyncParserForLanguage is introduced as well.

Bonus: added some tests for import() in ESM to @endo/compartment-mapper.

@boneskull
Copy link
Copy Markdown
Member Author

boneskull commented Apr 16, 2026

📚 Pull Request Stack


Managed by gh-stack

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 16, 2026

🦋 Changeset detected

Latest commit: d47070d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@endo/compartment-mapper Patch
@endo/bundle-source Patch
@endo/check-bundle Patch
@endo/daemon Patch
@endo/import-bundle Patch
@endo/test262-runner Patch
@endo/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

boneskull added 3 commits May 5, 2026 13:06
This fixes the half-implemented type defs and support for async parsers by introducing `AsyncParserImplementation`.

We needed sync-and-async-specific parse-mappers in `map-parser.js` and some type guards.

A sync-parser-specific `SyncParserForLanguage` is introduced as well.
This adds missing tests to assert support of `import()` in ES module sources.

As expected, it does not work within archives.
@boneskull boneskull force-pushed the boneskull/async-parser branch from 80a974c to d47070d Compare May 5, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lavamoat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant