diff options
Diffstat (limited to 'tests/benchmarks/declarative/script/data/slot_complex_js.js')
-rw-r--r-- | tests/benchmarks/declarative/script/data/slot_complex_js.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/benchmarks/declarative/script/data/slot_complex_js.js b/tests/benchmarks/declarative/script/data/slot_complex_js.js new file mode 100644 index 0000000000..64a1f65daa --- /dev/null +++ b/tests/benchmarks/declarative/script/data/slot_complex_js.js @@ -0,0 +1,8 @@ +function myCustomFunction(n) { + var a = 1; + while (n > 0) { + a = a * n; + n--; + } + return a; +} |