Skip to content

test: add closed-library assertions for getFunctions and getSymbols#63769

Open
Anshikakalpana wants to merge 1 commit into
nodejs:mainfrom
Anshikakalpana:test/ffi-closed-library-getFunctions-getSymbols
Open

test: add closed-library assertions for getFunctions and getSymbols#63769
Anshikakalpana wants to merge 1 commit into
nodejs:mainfrom
Anshikakalpana:test/ffi-closed-library-getFunctions-getSymbols

Conversation

@Anshikakalpana
Copy link
Copy Markdown
Contributor

The 'closed libraries reject subsequent operations' test verified that getFunction and getSymbol throw after close, but getFunctions and getSymbols were not covered. Both methods check handle_ == nullptr and throw ERR_FFI_LIBRARY_CLOSED, so they belong in the same test.

Signed-off-by: anshikakalpana <anshikajain196872@gmail.com>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/ffi

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jun 6, 2026
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. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants