summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/basic/testForInLoopChangeIteratorType.js
blob: 0efce83648ec12a63c7637404eec2edb0b77942d (plain)
1
2
3
4
5
6
7
8
9
10
11
function testForInLoopChangeIteratorType() {
    for(y in [0,1,2]) y = NaN;
    (function(){
        [].__proto__.u = void 0;
        for (let y in [5,6,7,8])
            y = NaN;
        delete [].__proto__.u;
    })()
    return "ok";
}
assertEq(testForInLoopChangeIteratorType(), "ok");