summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/update-expression-on-member-expression.js
blob: c3e0a7533737283871c9fa0e36c03665f30e05e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
load("test-common.js");

try {
    var o = {};
    o.f = 1;

    assert(o.f++ === 1);
    assert(++o.f === 3);
    assert(isNaN(++o.missing));

    console.log("PASS");
} catch (e) {
    console.log("FAIL: " + e);
}