close
Skip to content

ffi: enable module by default - #65475

Open
mcollina wants to merge 1 commit into
nodejs:mainfrom
mcollina:ffi-enable-by-default
Open

ffi: enable module by default#65475
mcollina wants to merge 1 commit into
nodejs:mainfrom
mcollina:ffi-enable-by-default

Conversation

@mcollina

Copy link
Copy Markdown
Member

Enable node:ffi by default in builds with FFI support. Keep --experimental-ffi as a compatibility no-op and --no-experimental-ffi as an opt-out. The module remains experimental and continues to emit a warning when first loaded.

Enable node:ffi by default in builds with FFI support. Keep
--experimental-ffi as a compatibility no-op and --no-experimental-ffi as
an opt-out. Loading the module still emits an experimental warning.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/performance

@nodejs-github-bot nodejs-github-bot added benchmark Issues and PRs related to the benchmark subsystem. ffi Issues and PRs related to experimental Foreign Function Interface support. labels Aug 21, 2026
@codecov

codecov Bot commented Aug 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.13%. Comparing base (adad4d6) to head (4e019a2).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65475      +/-   ##
==========================================
- Coverage   90.13%   90.13%   -0.01%     
==========================================
  Files         751      751              
  Lines      252405   252405              
  Branches    47464    47463       -1     
==========================================
- Hits       227508   227502       -6     
+ Misses      16213    16206       -7     
- Partials     8684     8697      +13     
Files with missing lines Coverage Δ
src/node_options.cc 79.64% <ø> (ø)
src/node_options.h 95.34% <100.00%> (+0.46%) ⬆️

... and 31 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.

@ShogunPanda ShogunPanda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@mertcanaltin mertcanaltin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Labels

benchmark Issues and PRs related to the benchmark subsystem. ffi Issues and PRs related to experimental Foreign Function Interface support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants