mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-19 19:43:48 -04:00
Fix internal issue list problem
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user