Sign in
webkit
/
WebKit
/
6b7c45f751131450b1675ef5b4b89fb3a0e35aba
/
.
/
JSTests
/
microbenchmarks
/
string-replace-generic.js
blob: f4e1a936c1c72e7a1ed53b3770335feb023d29af [
file
] [
log
] [
blame
]
(
function
()
{
var
result
;
for
(
var
i
=
0
;
i
<
400000
;
++
i
)
{
result
=
"foo"
.
replace
(
/f/
g
,
42
);
}
if
(
result
!=
"42oo"
)
throw
"Error: bad result: "
+
result
;
})();