napi-rs/examples/napi/__tests__/tsfn-error.cjs
LongYinan 13d0ce075e
feat: integrate with emnapi (#1669)
* Integrate with emnapi

* resolve conflict

* ignore wasm

* generate wasi file

* Add wasi test to workflow

* Fix wasi template

* emnapi new initialize api

* Finish test

* Purne tsconfig

* Generate wasi worker

* Fix electron test

* Finalize check

* Noop adjust_external_memory

* Apply cr suggestions
2023-11-02 12:57:11 +08:00

3 lines
139 B
JavaScript

import('../index.js').then(({ default: { threadsafeFunctionFatalModeError } }) => {
return threadsafeFunctionFatalModeError(() => {})
})