mirror of
https://github.com/openharmony/js_sys_module.git
synced 2026-07-01 22:04:01 -04:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user