mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2025-02-25 23:08:22 +00:00
!8240 Stack,Queue,Deque Assert Failed in C Interpreter
Merge pull request !8240 from 贺存茂/ConatinerError0718
This commit is contained in:
commit
32ac8549a4
@ -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();
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user