summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1407058.js
blob: 7c0953986b630640daf2fc0ba819f82612f4cdeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";
function f() {
    var o = {};
    Object.defineProperty(o, "x", {get: undefined, set: undefined});
    for (var i = 0; i < 20; i++) {
        var ex = null;
        try {
            o.x = 9;
        } catch (e) {
            ex = e;
        }
        assertEq(ex instanceof TypeError, true);
        assertEq(o.x, undefined);
    }
}
f();