js/src/jit-test/tests/arrow-functions/params-1.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:195585f68119
1 // arrow functions may have empty arguments
2
3 var f = () => 'x';
4 assertEq(f.length, 0);
5 assertEq(f(), 'x');
6 assertEq(f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9), 'x');

mercurial