Skip to content

add import attributes to the normalize function#1349

Merged
saghul merged 1 commit intoquickjs-ng:masterfrom
tangramdotdev:normalize-func-import-attributes
Feb 13, 2026
Merged

add import attributes to the normalize function#1349
saghul merged 1 commit intoquickjs-ng:masterfrom
tangramdotdev:normalize-func-import-attributes

Conversation

@nitsky
Copy link
Copy Markdown
Contributor

@nitsky nitsky commented Feb 12, 2026

Currently, only module loading has access to import attributes, but according to the ES spec, import attributes are allowed to affect resolution as well. This PR adds JSModuleNormalizeFunc2 so you can provide a normalize function that takes import attributes.

@saghul saghul merged commit 72ba50f into quickjs-ng:master Feb 13, 2026
121 of 122 checks passed
rkd77 pushed a commit to rkd77/quickjs that referenced this pull request Feb 13, 2026
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