mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
8 lines
155 B
JavaScript
8 lines
155 B
JavaScript
test("basic update expression", () => {
|
|
const o = {};
|
|
o.f = 1;
|
|
|
|
expect(o.f++).toBe(1);
|
|
expect(++o.f).toBe(3);
|
|
expect(++o.missing).toBeNaN();
|
|
});
|