fix ability_runtime warning 0307

Signed-off-by: holani <3170074871@qq.com>
This commit is contained in:
holani
2025-03-07 15:29:13 +08:00
parent 5d1be161ed
commit 6696ffe28c
@@ -765,12 +765,6 @@ CJEnvMethods* CJEnvironment::CreateEnvMethods()
.startDebugger = []() {
return CJEnvironment::GetInstance()->StartDebugger();
},
.registerArkVMInRuntime = [](unsigned long long arkVM) {
CJEnvironment::GetInstance()->RegisterArkVMInRuntime(arkVM);
},
.registerStackInfoCallbacks = [](UpdateStackInfoFuncType uFunc) {
CJEnvironment::GetInstance()->RegisterStackInfoCallbacks(uFunc);
},
.registerCJUncaughtExceptionHandler = [](const CJUncaughtExceptionInfo& handle) {
return CJEnvironment::GetInstance()->RegisterCJUncaughtExceptionHandler(handle);
},
@@ -779,6 +773,12 @@ CJEnvMethods* CJEnvironment::CreateEnvMethods()
},
.checkLoadCJLibrary = []() {
return CJEnvironment::GetInstance()->CheckLoadCJLibrary();
},
.registerArkVMInRuntime = [](unsigned long long arkVM) {
CJEnvironment::GetInstance()->RegisterArkVMInRuntime(arkVM);
},
.registerStackInfoCallbacks = [](UpdateStackInfoFuncType uFunc) {
CJEnvironment::GetInstance()->RegisterStackInfoCallbacks(uFunc);
}
};
return &gCJEnvMethods;