Sign in
webkit
/
WebKit
/
5bd663b95d2fa0048c9b51d7e90d3c09992ceb28
/
.
/
JSTests
/
es6
/
well-known_symbols_Symbol.match_String.prototype.endsWith.js
blob: a63b1846d49cc817291bce2d6fcc64b7ebbd68ce [
file
] [
log
] [
blame
]
function
test
()
{
var
re
=
/./
;
try
{
'/./'
.
endsWith
(
re
);
}
catch
(
e
){
re
[
Symbol
.
match
]
=
false
;
return
'/./'
.
endsWith
(
re
);
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);