Sign in
webkit
/
WebKit
/
7e7e2d918d7e1a0018ebe83443f8a7bdffbb2f59
/
.
/
JSTests
/
stress
/
regexp-prototype-replace-builtin-should-not-use-for-of.js
blob: 5248f7f35a405aebd0d29833a258aa507cbf5146 [
file
] [
log
] [
blame
]
Array
.
prototype
[
Symbol
.
iterator
]
=
function
()
{
throw
new
Error
(
"Bad, this should not be called!"
);
}
let regexp
=
/(foo)/
;
regexp
[
Symbol
.
replace
](
"foo"
,
"bar"
);