mirror of
https://github.com/openharmony/utils_native_lite.git
synced 2026-07-21 01:35:27 -04:00
change file permission
Signed-off-by: huangyicong <huangyicong4@huawei.com>
This commit is contained in:
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
+1
-1
@@ -32,7 +32,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
+1
-1
@@ -73,7 +73,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
+2
-2
@@ -103,7 +103,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 +277,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