Skip to content

[v24.x backport] wasm: support js string constant esm import#62569

Open
guybedford wants to merge 2 commits intonodejs:v24.x-stagingfrom
guybedford:backport/62198-wasm-js-string-esm-v24.x-staging
Open

[v24.x backport] wasm: support js string constant esm import#62569
guybedford wants to merge 2 commits intonodejs:v24.x-stagingfrom
guybedford:backport/62198-wasm-js-string-esm-v24.x-staging

Conversation

@guybedford
Copy link
Copy Markdown
Contributor

Backport of #62198 for 24.x.

PR-URL: nodejs#62415
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Extends the Wasm ESM Integration for importing WebAssembly
modules in either the source phase or instance phase to support
importing static JS string constants from the special
import name `wasm:js/string-constants`.

PR-URL: nodejs#62198
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch. labels Apr 2, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.11%. Comparing base (065c9b0) to head (54ccef0).
⚠️ Report is 159 commits behind head on v24.x-staging.

Additional details and impacted files
@@               Coverage Diff                @@
##           v24.x-staging   #62569     +/-   ##
================================================
  Coverage          90.10%   90.11%             
================================================
  Files                667      670      +3     
  Lines             199019   200418   +1399     
  Branches           38911    39103    +192     
================================================
+ Hits              179335   180610   +1275     
- Misses             12040    12135     +95     
- Partials            7644     7673     +29     
Files with missing lines Coverage Δ
lib/internal/modules/esm/module_job.js 96.56% <100.00%> (+0.04%) ⬆️
lib/internal/modules/esm/translators.js 92.37% <100.00%> (-0.56%) ⬇️

... and 170 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants