n-api,test: add a new.target test to addons-napi
Added a N-API test to verify new.target behavior.
Originally added to node-chakracore by @boingoing.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines