Skip to content

lib, doc: Float16Array cleanup and typo fixes#62542

Open
parsherr wants to merge 2 commits intonodejs:mainfrom
parsherr:cleanup-and-docs-typo-fix
Open

lib, doc: Float16Array cleanup and typo fixes#62542
parsherr wants to merge 2 commits intonodejs:mainfrom
parsherr:cleanup-and-docs-typo-fix

Conversation

@parsherr
Copy link
Copy Markdown

@parsherr parsherr commented Apr 1, 2026

This PR contains several small improvements:\n1. lib: make Float16Array a first-class primordial in comparisons.js and lib/internal/per_context/primordials.js\n2. doc: fix typos in stream_iter.md and util.md\n3. doc: link MDN docs for disposables in fs.md

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module. labels Apr 1, 2026
gurgunday
gurgunday previously approved these changes Apr 1, 2026
Copy link
Copy Markdown
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

lgtm

'Error',
'EvalError',
'FinalizationRegistry',
'Float16Array',
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.

This is an optional flagged feature in V8. This change crashes the snapshot generator, and segfaults the Node.js process on startup with --no-js-float16array. This is the reason why it is not in primordials, the same as other optional components such as SharedArrayBuffer.

Please revert the lib changes.

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

Labels

needs-ci PRs that need a full CI run. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants