blob: bffecfce73ea927faea9685865eb99e80f9a49f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// |jit-test| skip-if: !('oomTest' in this)
var g = newGlobal();
var i = 0;
oomTest(function() {
var s = String.fromCharCode((i++) & 0xffff);
var r = "";
for (var j = 0; j < 1000; ++j) {
r = s + r;
}
g.String.prototype.toString.call(r);
});
|