Source code

Revision control

Copy as Markdown

Other Tools

var result = "";
o = { valueOf:function(){ throw "cow" } };
try {
String.fromCharCode(o);
} catch (e) {
result = e.toString();
}
assertEq(result, "cow");