mirror of
https://github.com/openharmony/useriam_user_auth.git
synced 2026-07-19 14:23:34 -04:00
Executable → Regular
+6
@@ -213,6 +213,12 @@ void Init(napi_env env, napi_value exports)
|
||||
status = napi_define_properties(env, exports, sizeof(exportFuncs) / sizeof(*exportFuncs), exportFuncs);
|
||||
if (status != napi_ok) {
|
||||
USERAUTH_HILOGE(MODULE_JS_NAPI, "napi_define_properties faild");
|
||||
return;
|
||||
}
|
||||
|
||||
status = napi_set_named_property(env, exports, "UserAuth", GetCtor(env));
|
||||
if (status != napi_ok) {
|
||||
USERAUTH_HILOGE(MODULE_JS_NAPI, "napi_set_named_property faild");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Executable → Regular
+6
@@ -55,6 +55,12 @@ void Init(napi_env env, napi_value exports)
|
||||
status = napi_define_properties(env, exports, sizeof(exportFuncs) / sizeof(*exportFuncs), exportFuncs);
|
||||
if (status != napi_ok) {
|
||||
USERAUTH_HILOGE(MODULE_JS_NAPI, "napi_define_properties faild");
|
||||
return;
|
||||
}
|
||||
|
||||
status = napi_set_named_property(env, exports, "UserAuthNorth", GetCtor(env));
|
||||
if (status != napi_ok) {
|
||||
USERAUTH_HILOGE(MODULE_JS_NAPI, "napi_set_named_property faild");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user