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