test: fix compiler warning in n-api test
Missed in ca786c37. This does
not actually affect the outcome because returning nullptr
or
this
from a constructor has the same effect.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test, n-api