Resolve multithreaded use case crashes

Fix the static napi_property_descriptor to napi_property_descriptor

issue: https://gitee.com/openharmony/js_util_module/issues/I53KX3

Signed-off-by: xdmal <maxiaodong16@huawei.com>
This commit is contained in:
xdmal
2022-04-20 15:31:17 +08:00
parent 9c40928e19
commit 41bcfe0b89
+1 -1
View File
@@ -238,7 +238,7 @@ namespace OHOS::Js_sys_module::Process {
const char* childProcessClassName = "ChildProcess";
napi_value childProcessClass = nullptr;
static napi_property_descriptor childProcessDesc[] = {
napi_property_descriptor childProcessDesc[] = {
DECLARE_NAPI_FUNCTION("close", Close),
DECLARE_NAPI_FUNCTION("kill", Kill),
DECLARE_NAPI_FUNCTION("getOutput", GetOutput),