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