Sign in
webkit
/
WebKit
/
ccf8f7cdbfbfa46d99c5a9dcfbbf6cb2e9ec8c2c
/
.
/
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"
);