Signed-off-by: chenzexin <chenzexin14@huawei.com>
This commit is contained in:
chenzexin
2024-08-22 17:48:18 +08:00
parent ca00cc1396
commit cc2afde9e1
@@ -727,7 +727,7 @@ napi_value JsUIExtensionBase::CallObjectMethod(const char *name, napi_value cons
TAG_LOGE(AAFwkTag::UI_EXT, "Failed to get object");
return nullptr;
}
HandleEscape handleEscape(jsRuntime_);
napi_value method = nullptr;
napi_get_named_property(env, obj, name, &method);
if (!CheckTypeForNapiValue(env, method, napi_function)) {