summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/precedence-4.js
blob: ca3e30d6e228e9594d7835768ec0162b896ea47b (plain)
1
2
3
4
5
6
// Funny case that looks kind of like default arguments isn't.

var f = (msg='hi', w=window => w.alert(a, b));  // sequence expression
assertEq(msg, 'hi');
assertEq(typeof w, 'function');
assertEq(f, w);