nodejs / node-chakracore

Node.js on ChakraCore :sparkles::turtle::rocket::sparkles:
Other
1.92k stars 342 forks source link

Issues with N-API Addon and TTD #615

Closed Kohagan91 closed 5 years ago

Kohagan91 commented 5 years ago

Hi,

I try TTD on an application with call to a N-API addon.

` try { var testAddon = require('C:/DEV/TestNAPI/blog-addons-example-master/build/Release/testaddon.node'); } catch(error) { console.error(error); } var http = require("http");

http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); response.end(testAddon.hello()); }).listen(8081); `

This script is very simple. testAddon.hello() return the date. I start this one with an command line tool node .\index.js => all is OK

If I do node --record .\index.js => I have only Recording is enabled (but not yet started)... and immediately that return to my CMD.

Thank you for your help :) ! And sorry for my bad English.