未验证 提交 7d3728e7 编写于 作者: O openharmony_ci 提交者: Gitee

!466 ipc alarm clean

Merge pull request !466 from 马根堂/master
...@@ -1254,7 +1254,7 @@ napi_value NAPI_MessageParcel::JS_rewindWrite(napi_env env, napi_callback_info i ...@@ -1254,7 +1254,7 @@ napi_value NAPI_MessageParcel::JS_rewindWrite(napi_env env, napi_callback_info i
napi_value NAPI_MessageParcel::JS_writeNoException(napi_env env, napi_callback_info info) napi_value NAPI_MessageParcel::JS_writeNoException(napi_env env, napi_callback_info info)
{ {
napi_value thisVar = nullptr; napi_value thisVar = nullptr;
napi_get_cb_info(env, info, 0, nullptr, &thisVar, nullptr); napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr);
NAPI_MessageParcel *napiParcel = nullptr; NAPI_MessageParcel *napiParcel = nullptr;
napi_unwrap(env, thisVar, (void **)&napiParcel); napi_unwrap(env, thisVar, (void **)&napiParcel);
NAPI_ASSERT(env, napiParcel != nullptr, "napiParcel is null"); NAPI_ASSERT(env, napiParcel != nullptr, "napiParcel is null");
...@@ -1269,7 +1269,7 @@ napi_value NAPI_MessageParcel::JS_readException(napi_env env, napi_callback_info ...@@ -1269,7 +1269,7 @@ napi_value NAPI_MessageParcel::JS_readException(napi_env env, napi_callback_info
napi_value result = nullptr; napi_value result = nullptr;
napi_get_undefined(env, &result); napi_get_undefined(env, &result);
napi_value thisVar = nullptr; napi_value thisVar = nullptr;
napi_get_cb_info(env, info, 0, nullptr, &thisVar, nullptr); napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr);
NAPI_MessageParcel *napiParcel = nullptr; NAPI_MessageParcel *napiParcel = nullptr;
napi_unwrap(env, thisVar, (void **)&napiParcel); napi_unwrap(env, thisVar, (void **)&napiParcel);
NAPI_ASSERT(env, napiParcel != nullptr, "napiParcel is null"); NAPI_ASSERT(env, napiParcel != nullptr, "napiParcel is null");
......
...@@ -1592,7 +1592,7 @@ napi_value NAPI_MessageSequence::JS_rewindWrite(napi_env env, napi_callback_info ...@@ -1592,7 +1592,7 @@ napi_value NAPI_MessageSequence::JS_rewindWrite(napi_env env, napi_callback_info
napi_value NAPI_MessageSequence::JS_writeNoException(napi_env env, napi_callback_info info) napi_value NAPI_MessageSequence::JS_writeNoException(napi_env env, napi_callback_info info)
{ {
napi_value thisVar = nullptr; napi_value thisVar = nullptr;
napi_get_cb_info(env, info, 0, nullptr, &thisVar, nullptr); napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr);
NAPI_MessageSequence *napiSequence = nullptr; NAPI_MessageSequence *napiSequence = nullptr;
napi_unwrap(env, thisVar, (void **)&napiSequence); napi_unwrap(env, thisVar, (void **)&napiSequence);
if (napiSequence == nullptr) { if (napiSequence == nullptr) {
...@@ -1614,7 +1614,7 @@ napi_value NAPI_MessageSequence::JS_readException(napi_env env, napi_callback_in ...@@ -1614,7 +1614,7 @@ napi_value NAPI_MessageSequence::JS_readException(napi_env env, napi_callback_in
napi_value result = nullptr; napi_value result = nullptr;
napi_get_undefined(env, &result); napi_get_undefined(env, &result);
napi_value thisVar = nullptr; napi_value thisVar = nullptr;
napi_get_cb_info(env, info, 0, nullptr, &thisVar, nullptr); napi_get_cb_info(env, info, nullptr, nullptr, &thisVar, nullptr);
NAPI_MessageSequence *napiSequence = nullptr; NAPI_MessageSequence *napiSequence = nullptr;
napi_unwrap(env, thisVar, (void **)&napiSequence); napi_unwrap(env, thisVar, (void **)&napiSequence);
if (napiSequence == nullptr) { if (napiSequence == nullptr) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册