mirror of
https://github.com/openharmony/js_worker_module.git
synced 2026-07-19 19:23:34 -04:00
fix community code alarms
Signed-off-by: y00576111 <yaojian16@huawei.com> Change-Id: Icf956b44239c7cef5d5ce085c53b138886466c76
This commit is contained in:
@@ -69,7 +69,7 @@ void CallWorkCallback(napi_env env, napi_value recv, size_t argc, const napi_val
|
|||||||
napi_get_named_property(env, recv, type, &callback);
|
napi_get_named_property(env, recv, type, &callback);
|
||||||
if (NapiValueHelp::IsCallable(env, callback)) {
|
if (NapiValueHelp::IsCallable(env, callback)) {
|
||||||
napi_value callbackResult = nullptr;
|
napi_value callbackResult = nullptr;
|
||||||
napi_call_function(env, recv, callback, 1, argv, &callbackResult);
|
napi_call_function(env, recv, callback, argc, argv, &callbackResult);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "worker_runner.h"
|
#include "worker_runner.h"
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|||||||
Reference in New Issue
Block a user