Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
microbenchmarks
/
regexp-string-iterator.js
blob: 7dd248db43c607d8941a80e5491eb2f2b424b023 [
file
] [
log
] [
blame
] [
edit
]
function
test
(
regexp
,
string
)
{
return
String
.
prototype
.
matchAll
.
call
(
string
,
regexp
);
}
noInline
(
test
);
const
regexp
=
/test/
g
;
const
string
=
"test test test"
;
for
(
let i
=
0
;
i
<
testLoopCount
;
i
++)
{
test
(
regexp
,
string
);
}