Skip to content

doc: use ffi.suffix in permission example - #64914

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
agape1225:ffi-doc-portable-suffix
Aug 4, 2026
Merged

nodejs-github-bot merged 1 commit into
nodejs:mainfrom
agape1225:ffi-doc-portable-suffix

Conversation

@agape1225

Copy link
Copy Markdown
Contributor

The --allow-ffi example in cli.md hard-coded the Linux-only .so extension. node:ffi already exposes suffix for exactly this case, and doc/api/ffi.md's own examples use it. Do the same here.

@nodejs-github-bot nodejs-github-bot added cli Issues and PRs related to the Node.js command-line interface. doc Issues and PRs related to Node.js documentation. labels Aug 1, 2026
The `--allow-ffi` example in cli.md hard-coded the Linux-only `.so`
extension. node:ffi already exposes `suffix` for exactly this case,
and doc/api/ffi.md's own examples use it. Do the same here.

Assisted-by: Claude Sonnet 5
Signed-off-by: agape1225 <49804691+agape1225@users.noreply.github.com>
@agape1225
agape1225 force-pushed the ffi-doc-portable-suffix branch from 972a072 to 11d12e8 Compare August 1, 2026 14:39
@trivikr trivikr added the ffi Issues and PRs related to experimental Foreign Function Interface support. label Aug 4, 2026
@trivikr trivikr added the commit-queue PRs queued for automated landing through the Commit Queue. label Aug 4, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Aug 4, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 2010da5 into nodejs:main Aug 4, 2026
22 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 2010da5

aduh95 pushed a commit that referenced this pull request Aug 13, 2026
The `--allow-ffi` example in cli.md hard-coded the Linux-only `.so`
extension. node:ffi already exposes `suffix` for exactly this case,
and doc/api/ffi.md's own examples use it. Do the same here.

Assisted-by: Claude Sonnet 5
Signed-off-by: agape1225 <49804691+agape1225@users.noreply.github.com>
PR-URL: #64914
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
aduh95 pushed a commit that referenced this pull request Aug 25, 2026
The `--allow-ffi` example in cli.md hard-coded the Linux-only `.so`
extension. node:ffi already exposes `suffix` for exactly this case,
and doc/api/ffi.md's own examples use it. Do the same here.

Assisted-by: Claude Sonnet 5
Signed-off-by: agape1225 <49804691+agape1225@users.noreply.github.com>
PR-URL: #64914
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Issues and PRs related to the Node.js command-line interface. doc Issues and PRs related to Node.js documentation. ffi Issues and PRs related to experimental Foreign Function Interface support.

4 participants