summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/update-expression-on-member-expression.js
blob: e9a29d6ea20852bfd499ea701339ee7c4ab8c83a (plain)
1
2
3
4
5
6
7
8
test("basic update expression", () => {
    const o = {};
    o.f = 1;

    expect(o.f++).toBe(1);
    expect(++o.f).toBe(3);
    expect(++o.missing).toBeNaN();
});