Skip to content

refactor: move dataviewSharedArrayBuffer gate out of experimentalFeatures#62

Open
bavulapati wants to merge 1 commit into
nodejs:mainfrom
bavulapati:refactor/dataview-runtime-feature-flag
Open

refactor: move dataviewSharedArrayBuffer gate out of experimentalFeatures#62
bavulapati wants to merge 1 commit into
nodejs:mainfrom
bavulapati:refactor/dataview-runtime-feature-flag

Conversation

@bavulapati
Copy link
Copy Markdown
Contributor

Follow-up to #39.

napi_create_dataview is a stable (non-experimental) Node-API. Its SharedArrayBuffer support is version-dependent — it landed in Node.js v24.13.1 and v25.4.0 (nodejs/node#60473) — but that is a runtime-version behavior, not a feature behind NAPI_EXPERIMENTAL. So the gate did not belong in experimentalFeatures.

This moves the dataviewSharedArrayBuffer flag into a new runtimeFeatures global for version-dependent behaviors of stable APIs. The version math stays in the Node harness; tests (and other implementors) just read a boolean, keeping test files runtime-agnostic.

  • implementors/node/features.js — add runtimeFeatures, move the flag out of experimentalFeatures
  • eslint.config.js — allow runtimeFeatures in test files
  • tests/js-native-api/test_dataview/test_sharedarraybuffer.js — gate on runtimeFeatures.dataviewSharedArrayBuffer

Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
@legendecas legendecas moved this from Need Triage to In Progress in Node-API Team Project Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants