Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
arrow-functions
/
precedence-1.js
blob: f84826cf1e09427b1676fb436eb609a8b555f412 [
file
] [
log
] [
blame
]
// || 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
);