Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testRegexpGet.js
blob: c8900098fbb8430cc388f288526996c7523fd09b [
file
] [
log
] [
blame
]
function
testRegexpGet
()
{
var
re
=
/hi/
;
var
a
=
[];
for
(
let i
=
0
;
i
<
5
;
++
i
)
a
.
push
(
re
.
source
);
return
a
.
toString
();
}
assertEq
(
testRegexpGet
(),
"hi,hi,hi,hi,hi"
);