napi-rs/examples/napi-compat-mode/__tests__/napi4/tsfn-throw.js
forehal a781a4f27e feat(cli): brand new cli tool with both cli and programmatical usage (#1492)
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
2023-04-06 11:04:53 +08:00

5 lines
136 B
JavaScript

const bindings = require('../../index.node')
bindings.testThreadsafeFunction(() => {
throw Error('Throw in thread safe function')
})