mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2024-11-27 10:11:08 +00:00
fix emun class
Signed-off-by: dingxiaochen <dingxiaochen@huawei.com>
This commit is contained in:
parent
0a83afb31d
commit
ad2a189188
@ -2708,10 +2708,9 @@ static napi_value CreateRadioType(napi_env env, napi_value exports)
|
||||
"RADIO_TECHNOLOGY_NR", NapiUtil::ToInt32Value(env, static_cast<int32_t>(RatType::RADIO_TECHNOLOGY_NR))),
|
||||
};
|
||||
napi_value result = nullptr;
|
||||
napi_define_class(env, "RadioType", NAPI_AUTO_LENGTH, CreateEnumConstructor, nullptr, sizeof(desc) / sizeof(*desc),
|
||||
desc, &result);
|
||||
napi_set_named_property(env, exports, "RadioType", result);
|
||||
|
||||
napi_define_class(env, "RadioTechnology", NAPI_AUTO_LENGTH, CreateEnumConstructor, nullptr,
|
||||
sizeof(desc) / sizeof(*desc), desc, &result);
|
||||
napi_set_named_property(env, exports, "RadioTechnology", result);
|
||||
return exports;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user