summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testInitPropOverMethod.js
blob: 5f70d3cd6fcf84650892b228c0035f9276301162 (plain)
1
2
3
4
5
6
7
8
9
for (var i = 0; i < 10; i++)
    x = {a: function () { return 33; }, a: 4};

try {
    result = x.a();
} catch (exc) {
    result = "threw " + exc.name;
}    
assertEq(result, "threw TypeError");