Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
stress
/
string-replace-strength-reduction-fail.js
blob: 8016aaeadbfacba2c288a4e515f241db86a661dd [
file
] [
log
] [
blame
] [
edit
]
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
'bad value: '
+
actual
);
}
function
test
()
{
return
"Hello"
.
replace
(
"Hey"
,
"World"
);
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
testLoopCount
;
++
i
)
shouldBe
(
test
(),
`
Hello
`);