diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-02-10 18:20:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 12:50:47 +0000 |
commit | 4baaa246a256a82e725ddf07015bad72ec13f3e5 (patch) | |
tree | 6c98c16cc443b76700357e6fc9edcfa133ac5940 /test_napi/src/lib.rs | |
parent | 1740e0fc3650dbf072ada4a530618db2a84a0854 (diff) |
fix(cli/napi): handle all property variants in napi_define_properties (#17680)
Fixes https://github.com/denoland/deno/issues/17509
This fixes the bug that blocked loading `fsevents` in Deno.
Diffstat (limited to 'test_napi/src/lib.rs')
-rw-r--r-- | test_napi/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test_napi/src/lib.rs b/test_napi/src/lib.rs index ed0afb741..dba9f65a5 100644 --- a/test_napi/src/lib.rs +++ b/test_napi/src/lib.rs @@ -27,7 +27,7 @@ pub mod typedarray; #[macro_export] macro_rules! cstr { ($s: literal) => {{ - std::ffi::CString::new($s).unwrap().as_ptr() + std::ffi::CString::new($s).unwrap().into_raw() }}; } |