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