Skip to content

[v22.x backport] Wasm ESM Integration PRs & Unflagging #59179

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

Open
wants to merge 2 commits into
base: v22.x-staging
Choose a base branch
from

Conversation

guybedford
Copy link
Contributor

@guybedford guybedford commented Jul 22, 2025

Backports:

This does not include source phase imports support as this was a later v8 feature.

This only reflects the unflagging of the experimental instance phase, and the backport is updated to reflect that.

JS String Builtins is possible to support with a very small polyfill layer allowing the implementation to match and pass the tests from v24.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/config
  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch. labels Jul 22, 2025
@guybedford guybedford force-pushed the esm-integration-unflag-backport branch from b6d4790 to 8a5a312 Compare July 23, 2025 18:52
@guybedford guybedford changed the title [v22.x backport] esm: unflag --experimental-wasm-modules [v22.x backport] Wasm ESM Integration PRs & Unflagging Jul 23, 2025
@guybedford guybedford force-pushed the esm-integration-unflag-backport branch from 8a5a312 to d069903 Compare July 23, 2025 21:16
@guybedford guybedford force-pushed the esm-integration-unflag-backport branch from d069903 to d5ff7ea Compare July 25, 2025 16:25
@nodejs-github-bot
Copy link
Collaborator

@ryanaslett
Copy link

This is the first PR to run after re-enabling OSX testing.

@aduh95
Copy link
Contributor

aduh95 commented Jul 28, 2025

Could you please rebase? Also, #59020 is labeled dont-land-on-v22.x PRs that should not land on the v22.x-staging branch and should not be released in v22.x. , do we actually want to include it?

@guybedford guybedford force-pushed the esm-integration-unflag-backport branch from d5ff7ea to fc09828 Compare July 28, 2025 19:56
@guybedford
Copy link
Contributor Author

guybedford commented Jul 28, 2025

@aduh95 sure, this is now rebased. I initially added that label when I thought string builtins was not implementable, but it was trivial to include the polyfill. Aligning the semantics for instances between 22 and 24 feels like a win to me here, so I think it could be worthwhile.

@guybedford guybedford force-pushed the esm-integration-unflag-backport branch from fc09828 to cb08197 Compare July 30, 2025 02:01
@guybedford
Copy link
Contributor Author

It actually turns out we can use the V8 flag here instead of including the polyfill for string builtins, so rebasing #59020 was actually much easier than I originally implemented too.

@guybedford guybedford force-pushed the esm-integration-unflag-backport branch from cb08197 to c25ba79 Compare July 30, 2025 02:04
@nodejs-github-bot

This comment was marked as outdated.

@guybedford guybedford force-pushed the esm-integration-unflag-backport branch from c25ba79 to 208e26d Compare July 30, 2025 03:55
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

@guybedford guybedford force-pushed the esm-integration-unflag-backport branch from 208e26d to a9736da Compare August 5, 2025 18:08
PR-URL: nodejs#59020
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
@guybedford guybedford force-pushed the esm-integration-unflag-backport branch 2 times, most recently from b2ebc0d to d6de6cd Compare August 6, 2025 00:46
PR-URL: nodejs#57038
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
@guybedford guybedford force-pushed the esm-integration-unflag-backport branch from d6de6cd to 6f42a72 Compare August 6, 2025 01:43
@nodejs-github-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants