Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testMatchAsCondition.js
blob: 8cb429f0c56136e913b435e07de095bf40d56929 [
file
] [
log
] [
blame
]
function
testMatchAsCondition
()
{
var
a
=
[
'0'
,
'0'
,
'0'
,
'0'
];
var
r
=
/0/
;
"x"
.
q
;
for
(
var
z
=
0
;
z
<
4
;
z
++)
a
[
z
].
match
(
r
)
?
1
:
2
;
}
testMatchAsCondition
();