!8240 Stack,Queue,Deque Assert Failed in C Interpreter

Merge pull request !8240 from 贺存茂/ConatinerError0718
This commit is contained in:
openharmony_ci 2024-07-20 18:41:29 +00:00 committed by Gitee
commit 32ac8549a4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 11 additions and 0 deletions

View File

@ -640,6 +640,9 @@ JSTaggedValue ObjectFastOperator::SetPropertyByIndex(JSThread *thread, JSTaggedV
return JSTypedArray::FastSetPropertyByIndex(thread, receiver, index, value, jsType);
}
if (IsSpecialContainer(jsType)) {
if (DefineSemantics(status)) {
return JSTaggedValue::Hole();
}
return SetContainerProperty(thread, holder, index, value, jsType);
}
return JSTaggedValue::Hole();

View File

@ -115,6 +115,14 @@ if (globalThis["ArkPrivate"] != undefined) {
if (keyName != "0123456789") {
print("Stack for in fail")
}
try {
class MyStack extends Stack{
100
}
new MyStack();
print("Test MyStack extends Stack failed");
} catch (error) {
}
if (!flag) {
print("Test Stack success!!!");
} else {