summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug566556.js
blob: 244be57d22898705333bb71beb9ea972bb25c7b0 (plain)
1
2
3
4
5
6
7
8
9
var msg = "";
try {
    this.__defineSetter__('x', Object.create);
    this.watch('x', function() {});
    x = 3;
} catch (e) {
    msg = e.toString();
}
assertEq(msg, "TypeError: undefined is not an object or null");