Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2022-10-12 16:33:45 +08:00
parent a1b7a068ab
commit d515371499
2 changed files with 0 additions and 6 deletions

View File

@ -20,7 +20,6 @@ config("ability_config") {
visibility = [ ":*" ]
include_dirs = [
"${inputmethod_path}/frameworks/kits/extension/include",
"${inputmethod_path}/interfaces/kits/js/napi/inputmethodclient",
"//commonlibrary/c_utils/base/include",
"${ability_runtime_path}/interfaces/kits/native/ability/native",
"${ability_runtime_path}/interfaces/kits/native/appkit/app",
@ -96,7 +95,6 @@ ohos_shared_library("inputmethod_extension") {
"${inputmethod_path}/frameworks/kits/extension/src/inputmethod_extension_context.cpp",
"${inputmethod_path}/frameworks/kits/extension/src/js_inputmethod_extension.cpp",
"${inputmethod_path}/frameworks/kits/extension/src/js_inputmethod_extension_context.cpp",
"${inputmethod_path}/interfaces/kits/js/napi/inputmethodclient/js_utils.cpp",
]
configs = [ ":ability_config" ]
public_configs = [

View File

@ -28,7 +28,6 @@
#include "napi_common_want.h"
#include "napi_remote_object.h"
#include "start_options.h"
#include "js_utils.h"
namespace OHOS {
namespace AbilityRuntime {
@ -216,9 +215,6 @@ private:
// only support one or zero params
if (info.argc != ARGC_ZERO && info.argc != ARGC_ONE) {
IMSA_HILOGE("Not enough params");
MiscServices::JsUtils::ThrowException(reinterpret_cast<napi_env>(&engine),
MiscServices::IMFErrorCode::EXCEPTION_PARAMCHECK, " should 0 or 1 parameters!",
MiscServices::TypeCode::TYPE_NONE);
return engine.CreateUndefined();
}