Signed-off-by: luocheng <luocheng52@huawei.com>
This commit is contained in:
luocheng 2023-05-22 06:25:27 +00:00 committed by Gitee
parent 5f7aed6730
commit 528b1285a6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -332,7 +332,7 @@ void NAccessibilityExtension::OnAccessibilityEvent(const AccessibilityEventInfo&
work,
[](uv_work_t *work) {},
[](uv_work_t *work, int status) {
AccessibilityEventInfoCallbackInfo *data = static_cast<AccessibilityEventInfoCallbackInfo*>(work->data);+
AccessibilityEventInfoCallbackInfo *data = static_cast<AccessibilityEventInfoCallbackInfo*>(work->data);
napi_handle_scope scope = nullptr;
NAPI_CALL(reinterpret_cast<napi_env>(data->engine_), napi_open_handle_scope(reinterpret_cast<napi_env>(data->engine_), &scope));
auto closeScope = [reinterpret_cast<napi_env>(data->engine_)](napi_handle_scope scope) { napi_close_handle_scope(reinterpret_cast<napi_env>(data->engine_), scope); };