diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/basic/bug1341326.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug1341326.js b/js/src/jit-test/tests/basic/bug1341326.js new file mode 100644 index 0000000000..9bacd45270 --- /dev/null +++ b/js/src/jit-test/tests/basic/bug1341326.js @@ -0,0 +1,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); +} |