Skip to content

typings: add encodeIntoResults to EncodingBinding - #65350

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
greenheadHQ:feat/encoding-binding-encode-into-results
Aug 29, 2026
Merged

typings: add encodeIntoResults to EncodingBinding#65350
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
greenheadHQ:feat/encoding-binding-encode-into-results

Conversation

@greenheadHQ

Copy link
Copy Markdown
Contributor

This adds the existing encodeIntoResults Uint32Array property to the internal EncodingBinding declaration.

The native binding exposes this two-element result buffer, and lib/internal/encoding.js already consumes it for the read and written values returned by TextEncoder.encodeInto().

No runtime behavior is changed.

Tests:

  • make JOBS=10
  • ./node test/wpt/test-encoding.js
  • Targeted TypeScript check: TS2339 before the change and no diagnostics after

Signed-off-by: greenhead <shren0812@gmail.com>
@nodejs-github-bot nodejs-github-bot added the typings Issues and PRs related to internal TypeScript declarations. label Aug 17, 2026
@daeyeon daeyeon added author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. labels Aug 29, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 6cff903 into nodejs:main Aug 29, 2026
27 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 6cff903

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Aug 29, 2026
aduh95 pushed a commit that referenced this pull request Aug 29, 2026
Signed-off-by: greenhead <shren0812@gmail.com>
PR-URL: #65350
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. typings Issues and PRs related to internal TypeScript declarations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants