summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug555484.js
blob: f15f2b268ac44d10511eb8be8aad9d60f658159c (plain)
1
2
3
4
5
6
7
8
var result = "";
o = { valueOf:function(){ throw "cow" } };
try {
    String.fromCharCode(o);
} catch (e) {
    result = e.toString();
}
assertEq(result, "cow");