summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testAssignmentThatIgnoresSetterRetval.js
blob: 1c59113482dc0ded6adbf3f9b8420592a79fd000 (plain)
1
2
3
4
5
6
7
8
9
10
var o = {
    set x(v) {
        return 42;
    }
};

for (var i = 0; i < 10; ++i) {
    var z = o.x = "choose me";
    assertEq(z, "choose me");
}