]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/make-large-string-strcat.js
JavaScriptCore-1218.35.tar.gz
[apple/javascriptcore.git] / tests / stress / make-large-string-strcat.js
1 var s = "s";
2
3 try {
4 for (var i = 0; i < 31; ++i)
5 s = "t" + s + s;
6 print("Should not have gotten here.");
7 print("String length: " + s.length);
8 throw "Should not have gotten here.";
9 } catch (e) {
10 if (e.message != "Out of memory")
11 throw "Wrong error: " + e;
12 }