mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-06 23:54:03 +00:00
!9285 [Bug]: Update test case for inline retyping
Merge pull request !9285 from 王不薄/fuzz0901_test
This commit is contained in:
commit
599b938109
@ -15,13 +15,44 @@
|
||||
|
||||
const arr = [1,2,3,4];
|
||||
try{
|
||||
arr.map(()=>{});
|
||||
arr.pop();
|
||||
arr.some(()=>{});
|
||||
arr.every(()=>{});
|
||||
arr.forEach(()=>{});
|
||||
arr.find(()=>{});
|
||||
arr.findIndex(()=>{});
|
||||
arr.map(-123456);
|
||||
arr.some(-123456);
|
||||
arr.every(-123456);
|
||||
arr.forEach(-123456);
|
||||
arr.find(-123456);
|
||||
arr.findIndex(-123456);
|
||||
}catch(e){}
|
||||
|
||||
const v0 = []
|
||||
for(let i25 = 0;i25<1;i25++){
|
||||
for(let i = 0;i<1;i++){
|
||||
i25 = v0.some(()=>{});
|
||||
}
|
||||
}
|
||||
for(let i25 = 0;i25<1;i25++){
|
||||
for(let i = 0;i<1;i++){
|
||||
i25 = v0.pop();
|
||||
}
|
||||
}
|
||||
for(let i25 = 0;i25<1;i25++){
|
||||
for(let i = 0;i<1;i++){
|
||||
i25 = v0.forEach(()=>{});
|
||||
}
|
||||
}
|
||||
for(let i25 = 0;i25<1;i25++){
|
||||
for(let i = 0;i<1;i++){
|
||||
i25 = v0.find(()=>{});
|
||||
}
|
||||
}
|
||||
for(let i25 = -1;i25<0;i25++){
|
||||
for(let i = 0;i<1;i++){
|
||||
i25 = v0.findIndex(()=>{});
|
||||
}
|
||||
}
|
||||
for(let i25 = 0;i25<1;i25++){
|
||||
for(let i = 0;i<1;i++){
|
||||
i25 = v0.every(()=>{});
|
||||
}
|
||||
}
|
||||
print(arr.findIndex((num)=>{return num>2}));
|
||||
print(arr.find((num)=>{return num>2}))
|
Loading…
Reference in New Issue
Block a user