Fix internal issue list problem

Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
This commit is contained in:
zhaozhibo
2022-03-14 15:19:45 +08:00
parent b6531dfa05
commit 116b8f85cb
27 changed files with 194 additions and 197 deletions
+1 -1
View File
@@ -424,7 +424,7 @@ bool JSFunction::SetFunctionLength(JSThread *thread, const JSHandle<JSFunction>
JSHandle<JSTaggedValue> lengthKeyHandle = thread->GlobalConstants()->GetHandledLengthString();
ASSERT_PRINT(!JSTaggedValue::Less(thread, JSHandle<JSTaggedValue>(thread, length),
JSHandle<JSTaggedValue>(thread, JSTaggedValue(0))),
"length must be non negtive integer");
"length must be non negative integer");
PropertyDescriptor lengthDesc(thread, JSHandle<JSTaggedValue>(thread, length), false, false, cfg);
JSHandle<JSTaggedValue> funcHandle(func);
return JSTaggedValue::DefinePropertyOrThrow(thread, funcHandle, lengthKeyHandle, lengthDesc);