Just going through the hello world at https://neon-bindings.com/docs/hello-world
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
789 B

'use strict';
var hello = require('.');
//var hello = require('hello.neon');
console.log('hello()', hello.hello());
console.log('threadCount()', hello.threadCount());
console.log('greet("Bob")', hello.greet("Bob"));
console.log('noop()', hello.noop());
console.log('any()', hello.any());
console.log('any()', hello.any());
console.log('any()', hello.any());
console.log('any()', hello.any());
console.log('any()', hello.any());
console.log('any()', hello.any());
console.log('any()', hello.any());
if (Math.round(Math.random() * 1)) {
console.log('throw()');
console.log(hello.throw());
} else {
try {
console.log(console.log('panic()'));
console.log(hello.panic());
} catch(e) {
console.error('caught error:');
console.error(e);
}
}
console.log("all done");