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