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

Refactor: normalized encoding of ImportModule #3068

Merged
merged 2 commits into from
Sep 8, 2022

Conversation

lukaslihotzki
Copy link
Contributor

@lukaslihotzki lukaslihotzki commented Sep 5, 2022

With uninterpreted paths (not starting with ./, ../, or /), ImportModule::Named and ImportModule::RawNamed are equivalent (because the attributes are too). However, while the attributes should be designed for user convenience, the binary encoding should be optimized for simple processing. Attribute handling should be done purely in the macro-support crate. Therefore, it makes sense to normalize uninterpreted paths to ImportModule::RawNamed in the binary encoding.

@lukaslihotzki
Copy link
Contributor Author

This change helps with correctly supporting all kinds of paths in #3034.

@Liamolucko Liamolucko merged commit f82f5c5 into rustwasm:main Sep 8, 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