comparison: js/src/jit-test/tests/arrow-functions/precedence-1.js
js/src/jit-test/tests/arrow-functions/precedence-1.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 // || binds tighter than =>. |
|
2 |
|
3 var f; |
|
4 f = a => a || 'nothing'; // f = ((a => a) || 'nothing'); |
|
5 assertEq(f.length, 1); |
|
6 assertEq(f(0), 'nothing'); |
|
7 assertEq(f(1), 1); |