]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/make-large-string-strcat.js
JavaScriptCore-1218.35.tar.gz
[apple/javascriptcore.git] / tests / stress / make-large-string-strcat.js
CommitLineData
4be4e309
A
1var s = "s";
2
3try {
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}