Sign in
webkit
/
WebKit
/
6ddf72b170615ecec95a6e91c205227cc12d556b
/
.
/
JSTests
/
es6
/
Symbol_cannot_coerce_to_string_or_number.js
blob: e6e61cbf91846104722548b0ceb316cc770e336e [
file
] [
log
] [
blame
]
function
test
()
{
var
symbol
=
Symbol
();
try
{
symbol
+
""
;
return
false
;
}
catch
(
e
)
{}
try
{
symbol
+
0
;
return
false
;
}
catch
(
e
)
{}
return
true
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);