Skip to content

fix(test): client wasm compatible with clang 22#4909

Merged
metcoder95 merged 2 commits intonodejs:mainfrom
rozzilla:fix/test/client-wasm-compatible-with-clang-22
Mar 20, 2026
Merged

fix(test): client wasm compatible with clang 22#4909
metcoder95 merged 2 commits intonodejs:mainfrom
rozzilla:fix/test/client-wasm-compatible-with-clang-22

Conversation

@rozzilla
Copy link
Contributor

@rozzilla rozzilla commented Mar 19, 2026

This relates to...

Fixes #4668

Rationale

The test used a strict deepStrictEqual on the full exports list, which fails when clang >= 22 exports __stack_pointer as a global symbol.

This will make the test also more "future-proof" in case of future export additions.

Changes

Changed the assertion to check that each required export is present, without failing on unexpected compiler-internal symbols.

Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@c417633). Learn more about missing BASE report.
⚠️ Report is 504 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4909   +/-   ##
=======================================
  Coverage        ?   92.90%           
=======================================
  Files           ?      112           
  Lines           ?    35638           
  Branches        ?        0           
=======================================
  Hits            ?    33108           
  Misses          ?     2530           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
@gurgunday
Copy link
Member

Cc @metcoder95

@metcoder95 metcoder95 merged commit 4c3a2be into nodejs:main Mar 20, 2026
37 checks passed
@github-actions github-actions bot mentioned this pull request Mar 24, 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.

client-wasm.js test fails with clang >=22

4 participants