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