mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-12-04 05:22:25 +00:00
Resolve the problem of functions exceeding 50 lines in length
This commit is contained in:
parent
409cd0b8b5
commit
ee34fa3b7c
@ -87,7 +87,6 @@ private:
|
||||
napi_value OnCreateSystemHspModuleResourceManager(napi_env env, NapiCallbackInfo& info);
|
||||
napi_value OnCreateModuleResourceManager(napi_env env, NapiCallbackInfo& info);
|
||||
bool CheckCallerIsSystemApp();
|
||||
void BindPropertiesAndFunctions(napi_env env, napi_value object, const char* moduleName, std::make_unique<JsBaseContext> jsContext);
|
||||
};
|
||||
|
||||
void JsBaseContext::Finalizer(napi_env env, void* data, void* hint)
|
||||
@ -713,7 +712,7 @@ napi_value AttachApplicationContext(napi_env env, void* value, void* hint)
|
||||
return contextObj;
|
||||
}
|
||||
|
||||
void JsBaseContext::BindPropertiesAndFunctions(napi_env env, napi_value object, const char* moduleName, std::make_unique<JsBaseContext> jsContext){
|
||||
void BindPropertiesAndFunctions(napi_env env, napi_value object, const char* moduleName, std::make_unique<JsBaseContext> jsContext){
|
||||
|
||||
BindNativeProperty(env, object, "cacheDir", JsBaseContext::GetCacheDir);
|
||||
BindNativeProperty(env, object, "tempDir", JsBaseContext::GetTempDir);
|
||||
|
Loading…
Reference in New Issue
Block a user