blob: 3ac31dca8314a444caa6b1bf0edeed9ea48456f4 [file] [log] [blame]
//@ skip if $memoryLimited
var s = "s";
try {
for (var i = 0; i < 31; ++i)
s = s + s;
print("Should not have gotten here.");
print("String length: " + s.length);
throw "Should not have gotten here.";
} catch (e) {
if (e.message != "Out of memory")
throw "Wrong error: " + e;
}