summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/precedence-1.js
blob: f84826cf1e09427b1676fb436eb609a8b555f412 (plain)
1
2
3
4
5
6
7
// || binds tighter than =>.

var f;
f = a => a || 'nothing';  // f = ((a => a) || 'nothing');
assertEq(f.length, 1);
assertEq(f(0), 'nothing');
assertEq(f(1), 1);