Sign in
webkit
/
WebKit
/
7d815df5a5eb5a0a67d72260d5639681d50d7f66
/
.
/
JSTests
/
microbenchmarks
/
regexp-exec.js
blob: 052d05f6140b62ed26ea5886700261b0c1a9fb1c [
file
] [
log
] [
blame
]
(
function
()
{
var
result
=
0
;
var
n
=
1000000
;
var
re
=
/foo/
;
for
(
var
i
=
0
;
i
<
n
;
++
i
)
result
+=
re
.
exec
(
"foo"
).
length
;
if
(
result
!=
n
)
throw
"Error: bad result: "
+
result
;
})();