From 4baaa246a256a82e725ddf07015bad72ec13f3e5 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 10 Feb 2023 18:20:47 +0530 Subject: 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. --- test_napi/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test_napi/src/lib.rs') 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() }}; } -- cgit v1.2.3