Skip to content

Conversation

@vados-cosmonic
Copy link
Collaborator

This commit fixes an issue that was exposed when all imports are checked for existence during import. The browser shims at present not only are incomplete, but they're also missing key functions and classes that should be present.

This commit unfortunately doesn't actually bring the browser implementation up to snuff -- rather we simply add the placeholders that should be there (and will fail if use is attempted at runtime).

Up until now imports were not checked for existence, but the usefulness of explicit upfront errors (instead of less scruable ones later) is a good tradeoff.

In the future an option to disable import checks may be added.

@vados-cosmonic vados-cosmonic marked this pull request as ready for review December 5, 2025 12:14
This commit fixes an issue that was exposed when all imports are
checked for existence during import. The browser shims at present not
only are incomplete, but they're also missing key functions and
classes that should be present.

This commit unfortunately doesn't actually bring the browser
implementation up to snuff -- rather we simply add the placeholders
that should be there (and will fail if use is attempted at runtime).

Up until now imports were not checked for existence, but the
usefulness of explicit upfront errors (instead of less scruable ones
later) is a good tradeoff.

In the future an option to disable import checks may be added.
@vados-cosmonic vados-cosmonic force-pushed the fix(p2-shim)=missing-browser-shim-bits branch from f3e3db5 to c1e0b3e Compare December 5, 2025 12:14
@vados-cosmonic vados-cosmonic added this pull request to the merge queue Dec 5, 2025
Merged via the queue into bytecodealliance:main with commit 314b865 Dec 5, 2025
35 checks passed
@vados-cosmonic vados-cosmonic deleted the fix(p2-shim)=missing-browser-shim-bits branch December 5, 2025 12:35
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.

1 participant