| constructor(iterationCount) { |
| for (let i = 2; i < iterationCount; ++i) { |
| // Let's keep the loop busy. |
| for (let j = i - 1; j > 1; --j) { |
| if (!(i % (iterationCount - 2))) |
| else if (values.length == iterationCount) |
| // Small warm up with small iteration count. Try to get to DFG. |
| for (var i = 0; i < 30; ++i) { |
| if (!(e instanceof ReferenceError)) |
| throw "Exception thrown in iteration " + i + " was not a reference error"; |
| throw "Exception not thrown for an unitialized this at iteration " + i; |
| // Now try to go to FTL in the constructor. |
| for (var i = 0; i < 2; ++i) { |
| if (!(e instanceof ReferenceError)) |
| throw "Exception thrown in iteration " + i + " was not a reference error"; |
| throw "Exception not thrown for an unitialized this at iteration " + i; |