n-api: update reference test
Remove the necessity for allocating on the heap, and assert that the correct pointer gets passed to the finalizer.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
n-api