Sign in
webkit
/
WebKit
/
897c8e252a4a2dd858017139be422cb6359cd9d7
/
.
/
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
;
})();