blob: 1afac7faabe2f7ba3c0eb9d544dc9df46d9689b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// |jit-test| skip-if: !('oomTest' in this)
enableGeckoProfilingWithSlowAssertions();
try {
(function() {
while (n--) {
}
})();
} catch(exc1) {}
function arrayProtoOutOfRange() {
function f(obj) {}
function test() {
for (var i = 0; i < 1000; i++)
var r = f(i % 2 ? a : b);
}
test();
}
oomTest(arrayProtoOutOfRange);
|