Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1d8973f4
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1d8973f4
编写于
11月 17, 2022
作者:
H
hekun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the code four
Signed-off-by:
N
hekun
<
hekun18@huawei.com
>
上级
ce28f8f2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
10 deletion
+4
-10
arkui/ace_napi_test/entry/src/main/cpp/napi/napi_test.cpp
arkui/ace_napi_test/entry/src/main/cpp/napi/napi_test.cpp
+4
-10
未找到文件。
arkui/ace_napi_test/entry/src/main/cpp/napi/napi_test.cpp
浏览文件 @
1d8973f4
...
...
@@ -1433,8 +1433,8 @@ static napi_value napiCallThreadsafeFunction(napi_env env, napi_callback_info in
}
static
void
TsFuncFinalTotalFour
(
napi_env
env
,
void
*
finalizeData
,
void
*
hint
)
{
static
uv_thread_t
g
_
uvThreadTest7
;
uv_thread_join
(
&
g
_
uvThreadTest7
);
static
uv_thread_t
guvThreadTest7
;
uv_thread_join
(
&
guvThreadTest7
);
}
static
void
TsFuncCallJsFour
(
napi_env
env
,
napi_value
tsfn_cb
,
void
*
context
,
void
*
data
)
{
...
...
@@ -1495,7 +1495,6 @@ static napi_value napiCreateFunction(napi_env env, napi_callback_info info) {
return
value
;
}
static
napi_value
napiRefthreadSafeFunction
(
napi_env
env
,
napi_callback_info
info
)
{
napi_threadsafe_function
tsFunc
=
nullptr
;
napi_value
resourceName
=
0
;
...
...
@@ -1546,7 +1545,6 @@ static napi_value napiCreateBigintUint64(napi_env env, napi_callback_info info)
}
static
napi_value
napiCreateBigintInt64
(
napi_env
env
,
napi_callback_info
info
)
{
int64_t
testValue
=
INT64_MAX
;
napi_value
result
=
nullptr
;
napi_create_bigint_int64
(
env
,
testValue
,
&
result
);
...
...
@@ -1568,8 +1566,8 @@ static napi_value napiCreateBigintWords(napi_env env, napi_callback_info info) {
NAPI_CALL
(
env
,
napi_create_bigint_words
(
env
,
signBit
,
wordCount
,
words
,
&
result
));
NAPI_CALL
(
env
,
napi_get_value_bigint_words
(
env
,
result
,
&
signBit
,
&
wordCount
,
wordsOut
));
bool
testResult
=
false
;
const
int
w
ord_c
ount
=
2
;
if
(
signBit
==
0
&&
wordCount
==
word
_c
ount
&&
words
[
0
]
==
wordsOut
[
0
]
&&
words
[
1
]
==
wordsOut
[
1
])
{
const
int
w
C
ount
=
2
;
if
(
signBit
==
0
&&
wordCount
==
word
C
ount
&&
words
[
0
]
==
wordsOut
[
0
]
&&
words
[
1
]
==
wordsOut
[
1
])
{
testResult
=
true
;
}
napi_value
value
;
...
...
@@ -1590,10 +1588,6 @@ static napi_value napiFatalerror(napi_env env, napi_callback_info info) {
return
_value
;
}
EXTERN_C_START
static
napi_value
Init
(
napi_env
env
,
napi_value
exports
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录