summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1466626-3.js
blob: 2907e8ce2f5f347f47af40b46c6f7290d92a4e6e (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
});