summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/params-1.js
blob: 5c2395c394c58b57d0cd7bc3a58a307d4f974976 (plain)
1
2
3
4
5
6
// arrow functions may have empty arguments

var f = () => 'x';
assertEq(f.length, 0);
assertEq(f(), 'x');
assertEq(f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9), 'x');