test: fix addon test for Node.js 12 and V8 7.4
test: fix addon test for Node.js 12 and V8 7.4

V8 7.4 removes some API functions. Replace those with their NAN
counterparts.

PR-URL: https://github.com/nodejs/node-gyp/pull/1705
Reviewed-By: Refael Ackermann <0604a90ccdde7a0adfa2ff3857349859a7209740@gmail.com>
Reviewed-By: Ben Noordhuis <59bd0a3ff43b32849b319e645d4798d8a5d1e889@bnoordhuis.nl>



TooTallNate/node-gyp,TooTallNate/node-gyp,TooTallNate/node-gyp,TooTallNate/node-gyp,TooTallNate/node-gyp