summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/associativity-1.js
blob: a3ce3ea34a57988df67c00b83858129fabc67b9f (plain)
1
2
3
4
5
6
7
8
// Arrow right-associativity.

var t = a => b => a;
assertEq(t('A')('B'), 'A');

var curry = f => a => b => f(a, b);
var curried_atan2 = curry(Math.atan2);
assertEq(curried_atan2(0)(1), 0);