summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1341326.js
blob: e68b1a6ab9530032343bb4377962d9f28bab2f0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| skip-if: helperThreadCount() === 0
function eval(source) {
    offThreadCompileModule(source);
}
var N = 10000;
var left = repeat_str('(1&', N);
var right = repeat_str(')', N);
var str = 'actual = '.concat(left, '1', right, ';');
eval(str);
function repeat_str(str, repeat_count) {
    var arr = new Array(--repeat_count);
    while (repeat_count != 0) arr[--repeat_count] = str;
    return str.concat.apply(str, arr);
}