]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/make-large-string.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / make-large-string.js
1 var s = "s";
2
3 try {
4 for (var i = 0; i < 31; ++i)
5 s = 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 }