napi-rs/examples/napi
Victor Teo aee742f185
feat(napi): property getter and setter with closure (#1526)
* getter with closure with segment fault

* fix getter closure pointer

* add setter

* Cleanup API

* Add test for `create_function_from_closure`

* Fix compile error

* Fix flaky test title

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-03-21 11:22:07 +08:00
..
__test__ feat(napi): property getter and setter with closure (#1526) 2023-03-21 11:22:07 +08:00
src feat(napi): property getter and setter with closure (#1526) 2023-03-21 11:22:07 +08:00
tests test(napi-derive): add trybuild negative macro tests 2022-05-23 11:55:19 +08:00
.gitignore test(napi-derive): add trybuild negative macro tests 2022-05-23 11:55:19 +08:00
build.rs Introduce #[napi] procedural macro to automation development boilerplate (#696) 2021-09-23 01:29:09 +08:00
Cargo.toml fix(cli): zig cross armv7 (#1384) 2022-12-09 18:56:50 +08:00
electron.js fix(napi): fallback to copy arraybuffer if zero copy is not allowed (#1455) 2023-01-24 22:39:46 +08:00
index.d.ts feat(napi): property getter and setter with closure (#1526) 2023-03-21 11:22:07 +08:00
package.json chore: upgrade npm dependencies (#1443) 2023-01-19 00:32:52 +08:00
tsconfig.json test(napi): add electron tests 2022-05-10 18:39:37 +08:00