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