codecheck

Signed-off-by: zhangmenghan <zhangmenghan@kaihong.com>
This commit is contained in:
zhangmenghan 2024-10-24 10:57:41 +08:00
parent d17acb23fd
commit 72bd9ec5d1
2 changed files with 6 additions and 6 deletions

View File

@ -16,9 +16,9 @@
#include "common.h"
#include "javascriptapi.h"
napi_value jsFunctionsInit(napi_env env, napi_value exports) {
napi_property_descriptor desc[] =
{
napi_value jsFunctionsInit(napi_env env, napi_value exports)
{
napi_property_descriptor desc[] = {
{"testNapiCallFunction", nullptr, testNapiCallFunction, nullptr, nullptr, nullptr, napi_default, nullptr},
{"testNapiCreateFunction", nullptr, testNapiCreateFunction, nullptr, nullptr, nullptr, napi_default, nullptr},
};

View File

@ -16,9 +16,9 @@
#include "common.h"
#include "javascriptapi.h"
napi_value jsObjectWrapInit(napi_env env, napi_value exports) {
napi_property_descriptor desc[] =
{
napi_value jsObjectWrapInit(napi_env env, napi_value exports)
{
napi_property_descriptor desc[] = {
{"testNapiWrap", nullptr, testNapiWrap, nullptr, nullptr, nullptr, napi_default, nullptr},
{"testNapiUnwrap", nullptr, testNapiUnwrap, nullptr, nullptr, nullptr, napi_default, nullptr}};