blob: f1efbf5f5540f8aeb547a3bd3d2cf421a55ab497 [file] [log] [blame]
guijemont@igalia.com3d9c1e12017-11-21 01:27:02 +00001//@ if $buildType == "release" && !$memoryLimited then runDefault else skip end
sbarati@apple.com10d75662017-06-30 00:58:18 +00002
3function temp(i) {
4 let a1 = [{}];
5 a1.foo = 20;
6 a1.foo1 = 20;
7 a1.foo2 = 20;
8 a1.foo3 = 20;
9 a1.foo4 = 20;
10 a1.foo5 = 20;
11 a1.foo6 = 20;
12 a1.foo8 = 20;
13 a1.foo10 = 20;
14 a1.foo11 = 20;
15 delete a1[0];
16 try {
17 let args = [-15, 1, 'foo', 20, 'bar'];
18 for (let j = 0; j < i; ++j)
19 args.push(j);
20 for (let i = 0; i < 2**31 - 1; ++i) {
21 Array.prototype.splice.apply(a1, args);
22 }
23 } catch(e) { }
24}
25let i = 62;
26temp(i);