!9285 [Bug]: Update test case for inline retyping

Merge pull request !9285 from 王不薄/fuzz0901_test
This commit is contained in:
openharmony_ci 2024-09-14 06:51:36 +00:00 committed by Gitee
commit 599b938109
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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}))