Skip to content

Add tests for Node-API thread-safe functions and uncaught exceptions - #5

Merged
NickNaso merged 1 commit into
mainfrom
napi-m5
Nov 17, 2026
Merged

NickNaso merged 1 commit into
mainfrom
napi-m5

Conversation

@NickNaso

Copy link
Copy Markdown
Member
  • Implemented test_ref_then_set.c and test_set_then_ref.c to test reference handling in Node-API.
  • Created binding.c for testing thread-safe functions with libuv's threading library.
  • Added binding.gyp for building the thread-safe function tests.
  • Developed test.js to validate the behavior of thread-safe functions and their interactions with JavaScript callbacks.
  • Introduced test_uncaught_exception.c and corresponding JavaScript tests to verify uncaught exception handling in Node-API.
  • Added test_uv_loop to test the integration of Node-API with the libuv event loop.
  • Created test_uv_threadpool_size to validate the behavior of the thread pool size in Node-API.
  • Enhanced error handling and assertions in the async work implementation.

- Implemented `test_ref_then_set.c` and `test_set_then_ref.c` to test reference handling in Node-API.
- Created `binding.c` for testing thread-safe functions with libuv's threading library.
- Added `binding.gyp` for building the thread-safe function tests.
- Developed `test.js` to validate the behavior of thread-safe functions and their interactions with JavaScript callbacks.
- Introduced `test_uncaught_exception.c` and corresponding JavaScript tests to verify uncaught exception handling in Node-API.
- Added `test_uv_loop` to test the integration of Node-API with the libuv event loop.
- Created `test_uv_threadpool_size` to validate the behavior of the thread pool size in Node-API.
- Enhanced error handling and assertions in the async work implementation.
@NickNaso
NickNaso merged commit e985a27 into main Nov 17, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant