Sign in
webkit
/
WebKit
/
8d6dcceb7210b47da2f34352604a698f98d3c887
/
.
/
JSTests
/
microbenchmarks
/
string-replace.js
blob: 56e152cb9e987079586c9474af90ed45ab845e64 [
file
] [
log
] [
blame
]
(
function
()
{
var
result
;
for
(
var
i
=
0
;
i
<
400000
;
++
i
)
{
result
=
"foo"
.
replace
(
/f/
g
,
"b"
);
}
if
(
result
!=
"boo"
)
throw
"Error: bad result: "
+
result
;
})();