Signed-off-by: lifansheng <lifansheng1@huawei.com>

On branch master
 Your branch is up to date with 'origin/master'.
This commit is contained in:
lifansheng
2021-12-22 10:59:10 +08:00
parent 165a8aadb8
commit bd9b4cb264
4 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ namespace OHOS::Js_sys_module::Process {
|| propertyType == napi_undefined,
"Wrong KillSignal argument typr. String or number expected");
break;
case 2:
case 2: // 2:The parameter value
NAPI_CALL(env, napi_typeof(env, property, &propertyType));
NAPI_ASSERT(env, propertyType == napi_number || propertyType == napi_undefined,
"Wrong maxBuffer argument typr. Number expected");