diff --git a/crates/napi/src/bindgen_runtime/module_register.rs b/crates/napi/src/bindgen_runtime/module_register.rs index 94a2903f..847e6376 100644 --- a/crates/napi/src/bindgen_runtime/module_register.rs +++ b/crates/napi/src/bindgen_runtime/module_register.rs @@ -334,7 +334,7 @@ pub(crate) unsafe extern "C" fn noop( sys::napi_throw_error( env, ptr::null_mut(), - CStr::from_bytes_with_nul_unchecked(b"Class contains no `constructor`, can not new it!") + CStr::from_bytes_with_nul_unchecked(b"Class contains no `constructor`, can not new it!\0") .as_ptr(), ); }