bug1216157.js (285B)
1 // |jit-test| allow-oom 2 3 gcslice(0); // Start IGC, but don't mark anything. 4 function f(str) { 5 for (var i = 0; i < 10; i++) { 6 arr = /foo(ba(r))?/.exec(str); 7 var x = arr[oomAfterAllocations(100)] + " " + arr[1] + " " + 1899; 8 } 9 } 10 try { 11 f("foo"); 12 } catch(e) {}