napi-rs/examples/napi-compat-mode/__test__/napi4/tsfn-dua-instance.js

12 lines
225 B
JavaScript
Raw Normal View History

const bindings = require('../../index.node')
async function main() {
await Promise.resolve()
new bindings.A((s) => console.info(s))
new bindings.A((s) => console.info(s))
}
main().catch((e) => {
console.error(e)
})