summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/function-cloning-2.js
blob: 755a178e7850bbccd32fb93b5a899d9031511a7d (plain)
1
2
3
4
5
6
7
8
9
if (typeof oomAtAllocation === 'object') {
    var a = [];
    oomAtAllocation(1);
    try {
    	a.forEach();
    } catch (e) {
    }
    a.forEach(()=>1);
}