Skip stress/string-joining-long-strings-should-not-crash.js on memory limited devices
[WebKit-https.git] / JSTests / stress / string-joining-long-strings-should-not-crash.js
1 //@largeHeap
2 // @runDefault if !$memoryLimited
3 // This test should not crash.
4
5 var error;
6 let str = '';
7 let arr = [{}, 2, 3];
8 try {
9     for (let z = 0; z < 30; z++)
10         str = arr.join(str); // exponentially grow length of string.
11 } catch(e) {
12     error = e;
13 }
14
15 if (!error)
16     throw Error("Failed");