Skip to content

feat: port test_instance_data to CTS - #66

Draft
bavulapati wants to merge 2 commits into
nodejs:mainfrom
bavulapati:feat/port-test-instance-data
Draft

feat: port test_instance_data to CTS#66
bavulapati wants to merge 2 commits into
nodejs:mainfrom
bavulapati:feat/port-test-instance-data

Conversation

@bavulapati

@bavulapati bavulapati commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Ports test/js-native-api/test_instance_data.

  • test.js - in-process: increment() returns 42, and a finalizer reaching instance data to call back into JS.
  • testInstanceDataTeardown.js - the napi_set_instance_data delete hook only runs at environment teardown, so it spawns a child and checks the deleting addon data line on its stdout.
  • testInstanceDataWorker.js - upstream's worker variant: the same in a secondary environment, covering per-environment instance data and teardown of that environment alone.

Stacked on #67, which adds the { worker: true } option the worker test needs - review that one first. Draft until it lands.

@bavulapati
bavulapati force-pushed the feat/port-test-instance-data branch from 4075e18 to 402dbf6 Compare July 31, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Need Triage

Development

Successfully merging this pull request may close these issues.

1 participant