Follow-up to #459 and #66 from the pinned Bun Node-API corpus at 4982b91e3702094330f3be3883354c52b8c01323.
Exact failing test:
napi > napi_reference_unref is blocked from finalizers in experimental modules
The self-contained wrapper expects the experimental finalizer process to reject the forbidden napi_reference_unref call and exit successfully after validating that contract. Home currently exits 1. The regular-module companion test passes, so the remaining boundary is specifically experimental finalizer GC access enforcement.
Acceptance:
- Match Node/Bun's experimental finalizer restriction and status behavior.
- Keep
napi_reference_unref can be called from finalizers in regular modulesgreen. - Add or retain a focused native regression that does not depend on node-gyp downloads.
- Re-run the pinned
napi/napi.test.tscorpus file.