projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
basic
/
testMatchAsCondition.js
1
function testMatchAsCondition() {
2
var a = ['0', '0', '0', '0'];
3
var r = /0/;
4
"x".q;
5
for (var z = 0; z < 4; z++)
6
a[z].match(r) ? 1 : 2;
7
}
8
testMatchAsCondition();