napi-rs/examples/napi-compat-mode/__tests__/napi4/tsfn-throw.js

6 lines
136 B
JavaScript
Raw Permalink Normal View History

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