Skip to content

feat: port test_exception to CTS - #43

Merged
legendecas merged 6 commits into
nodejs:mainfrom
bavulapati:feat/port-test-exception
Aug 7, 2026
Merged

feat: port test_exception to CTS#43
legendecas merged 6 commits into
nodejs:mainfrom
bavulapati:feat/port-test-exception

Conversation

@bavulapati

Copy link
Copy Markdown
Contributor

ports
test_exception from Node.js test suite to the CTS.

@bavulapati

Copy link
Copy Markdown
Contributor Author

@kraenhansen This turned out to be tricky, as this needs to verify an uncaughtException. Thus, forcing another level of process spawning to verify.

@kraenhansen

kraenhansen commented Mar 30, 2026

Copy link
Copy Markdown
Member

This one is tricky, as I don't expect implementors such as emnapi and React Native to support this from their harness implementation 🤔

@bavulapati

Copy link
Copy Markdown
Contributor Author

@kraenhansen A priority list would have helped. I'm just picking up from the list sequentially.

@bavulapati

Copy link
Copy Markdown
Contributor Author

depends on #54

@kraenhansen

Copy link
Copy Markdown
Member

@bavulapati similarly to this comment I suggest moving this into draft until the parent PR merge.

@kraenhansen
kraenhansen marked this pull request as draft April 26, 2026 08:30
@legendecas legendecas moved this from Need Triage to In Progress in Node-API Team Project Jun 5, 2026
@bavulapati
bavulapati force-pushed the feat/port-test-exception branch from 4dfac05 to 94d6582 Compare June 29, 2026 12:35
@bavulapati
bavulapati force-pushed the feat/port-test-exception branch from 94d6582 to fc17c54 Compare July 14, 2026 08:10
@bavulapati
bavulapati marked this pull request as ready for review July 14, 2026 08:12
Comment thread tests/js-native-api/test_exception/test.js Outdated
Comment thread tests/js-native-api/test_exception/testFinalizerException.js Outdated
@bavulapati
bavulapati requested a review from legendecas July 18, 2026 14:54

// GC until the finalizer fires; the counter just bounds the loop.
let gcCount = 10;
await gcUntil('test', () => --gcCount <= 0);

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.

gcUntil has a counter already. This can be optimized to check until onUncaughtException is invoked.

@bavulapati
bavulapati requested a review from legendecas July 24, 2026 06:47
@legendecas

Copy link
Copy Markdown
Member

This has a conflict.

@legendecas
legendecas merged commit 371e7c6 into nodejs:main Aug 7, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Node-API Team Project Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants