diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/cacheir/generic-spreadcall.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/cacheir/generic-spreadcall.js b/js/src/jit-test/tests/cacheir/generic-spreadcall.js new file mode 100644 index 0000000000..bf1b053a53 --- /dev/null +++ b/js/src/jit-test/tests/cacheir/generic-spreadcall.js @@ -0,0 +1,14 @@ +var sum = 0; + +function foo() { sum++; } + +const MAX_JIT_ARGS = 4096 / 8; +var arr = []; +for (var i = 0; i < MAX_JIT_ARGS + 1; i++) { + arr.push(1); +} + +for (var i = 0; i < 275; i++) { + foo(...arr); +} +assertEq(sum, 275); |