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