summaryrefslogtreecommitdiff
path: root/test_napi/src
diff options
context:
space:
mode:
Diffstat (limited to 'test_napi/src')
-rw-r--r--test_napi/src/properties.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_napi/src/properties.rs b/test_napi/src/properties.rs
index 9d90d0b7f..a54738cb5 100644
--- a/test_napi/src/properties.rs
+++ b/test_napi/src/properties.rs
@@ -36,7 +36,7 @@ pub fn init(env: napi_env, exports: napi_value) {
let properties = &[
napi_property_descriptor {
- utf8name: "test_property_rw".as_ptr() as *const c_char,
+ utf8name: "test_property_rw\0".as_ptr() as *const c_char,
name: ptr::null_mut(),
method: None,
getter: None,
@@ -46,7 +46,7 @@ pub fn init(env: napi_env, exports: napi_value) {
value: number,
},
napi_property_descriptor {
- utf8name: "test_property_r".as_ptr() as *const c_char,
+ utf8name: "test_property_r\0".as_ptr() as *const c_char,
name: ptr::null_mut(),
method: None,
getter: None,