mirror of
https://github.com/openharmony/utils_native_lite.git
synced 2026-07-21 01:35:27 -04:00
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+1
-1
@@ -30,7 +30,7 @@ enum OHOSLiteErrorCode {
|
||||
EC_ADDRESS = -4, /* Memory or bus address error */
|
||||
EC_IOERROR = -5, /* I/O error */
|
||||
EC_BUSBUSY = -6, /* xxx bus busy */
|
||||
EC_NORESPONCE = -7, /* Function is no responce */
|
||||
EC_NORESPONCE = -7, /* Function is no response */
|
||||
EC_NODEVICE = -8, /* No such device */
|
||||
EC_INVALID = -9, /* Invalid argument */
|
||||
EC_BUSY = -10, /* Device or resource busy */
|
||||
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+2
-1
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "nativeapi_deviceinfo.h"
|
||||
#include <string>
|
||||
#include <new>
|
||||
#include "global.h"
|
||||
#include "js_async_work.h"
|
||||
#include "nativeapi_common.h"
|
||||
@@ -32,7 +33,7 @@ JSIValue ExecuteAsyncWork(const JSIValue thisVal, const JSIValue* args,
|
||||
if (!NativeapiCommon::IsValidJSIValue(args, argsNum)) {
|
||||
return undefValue;
|
||||
}
|
||||
FuncParams* params = new FuncParams();
|
||||
FuncParams* params = new(std::nothrow) FuncParams();
|
||||
if (params == nullptr) {
|
||||
return undefValue;
|
||||
}
|
||||
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+2
-1
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "nativeapi_fs.h"
|
||||
#include <securec.h>
|
||||
#include <new>
|
||||
#include "ability_env.h"
|
||||
#include "js_async_work.h"
|
||||
#include "nativeapi_common.h"
|
||||
@@ -73,7 +74,7 @@ JSIValue ExecuteAsyncWork(const JSIValue thisVal, const JSIValue* args,
|
||||
if (!NativeapiCommon::IsValidJSIValue(args, argsNum)) {
|
||||
return undefValue;
|
||||
}
|
||||
FuncParams* params = new FuncParams();
|
||||
FuncParams* params = new(std::nothrow) FuncParams();
|
||||
if (params == nullptr) {
|
||||
return undefValue;
|
||||
}
|
||||
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+3
-2
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "nativeapi_kv.h"
|
||||
#include <securec.h>
|
||||
#include <new>
|
||||
#include "ability_env.h"
|
||||
#include "js_async_work.h"
|
||||
#include "nativeapi_common.h"
|
||||
@@ -103,7 +104,7 @@ JSIValue ExecuteAsyncWork(const JSIValue thisVal, const JSIValue* args,
|
||||
if (!NativeapiCommon::IsValidJSIValue(args, argsNum)) {
|
||||
return undefValue;
|
||||
}
|
||||
FuncParams* params = new FuncParams();
|
||||
FuncParams* params = new(std::nothrow) FuncParams();
|
||||
if (params == nullptr) {
|
||||
return undefValue;
|
||||
}
|
||||
@@ -277,7 +278,7 @@ JSIValue NativeapiKv::Delete(const JSIValue thisVal, const JSIValue* args, uint8
|
||||
JSIValue NativeapiKv::Clear(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum)
|
||||
{
|
||||
JSIValue undefValue = JSI::CreateUndefined();
|
||||
FuncParams* params = new FuncParams();
|
||||
FuncParams* params = new(std::nothrow) FuncParams();
|
||||
if (params == nullptr) {
|
||||
return undefValue;
|
||||
}
|
||||
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Reference in New Issue
Block a user