diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-12-13 06:26:53 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-13 19:56:53 +0530 |
| commit | ac4b5de656d318b98badc13e226f986e6c0b55eb (patch) | |
| tree | 0675ebcff20e87af66297e34f7c8e4f127edf341 /ext | |
| parent | 76a9df1ed85ab9bb149f224d9d94cf3359adfedd (diff) | |
feat(napi): improve napi coverage (#16198)
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/napi/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/napi/lib.rs b/ext/napi/lib.rs index 5fd3085ca..11619398d 100644 --- a/ext/napi/lib.rs +++ b/ext/napi/lib.rs @@ -75,6 +75,8 @@ pub const napi_arraybuffer_expected: napi_status = 19; pub const napi_detachable_arraybuffer_expected: napi_status = 20; pub const napi_would_deadlock: napi_status = 21; +pub const NAPI_AUTO_LENGTH: usize = usize::MAX; + thread_local! { pub static MODULE: RefCell<Option<*const NapiModule>> = RefCell::new(None); pub static ASYNC_WORK_SENDER: RefCell<Option<mpsc::UnboundedSender<PendingNapiAsyncWork>>> = RefCell::new(None); |
