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