blob: 9bacd4527053cde02f00d159223ba8b6793283b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |jit-test| skip-if: helperThreadCount() === 0
function eval(source) {
offThreadCompileModuleToStencil(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);
}
|