Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
es6
/
well-known_symbols_Symbol.replace.js
blob: 89182ed70d6cbcfce76fc84eb030687be0f375f6 [
file
] [
log
] [
blame
]
function
test
()
{
var
O
=
{};
O
[
Symbol
.
replace
]
=
function
(){
return
42
;
};
return
''
.
replace
(
O
)
===
42
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);