summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/params-default-1.js
blob: c4ff50774bc0d6be6c241d7966e9da8a89794cd5 (plain)
1
2
3
4
5
// Parameter default values work in arrow functions

var f = (a=0) => a + 1;
assertEq(f(), 1);
assertEq(f(50), 51);