Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
stress
/
fromCharCode-exception-check.js
blob: 328c06ed64f499d6b00f7480fd742a5168722c18 [
file
] [
log
] [
blame
]
// This shouldn't crash.
try
{
String
.
fromCharCode
(
Symbol
(),
new
Proxy
({},
{
get
()
{
}
}));
}
catch
(
e
)
{
if
(!(
e instanceof
TypeError
)
||
e
.
message
!==
"Cannot convert a symbol to a number"
)
throw
new
Error
(
"bad error type or message"
+
e
);
}