mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 10:42:51 +00:00
13 lines
246 B
JavaScript
13 lines
246 B
JavaScript
test("postfix increment evaluation order", () => {
|
|
function bar(a, b) {
|
|
expect(a).toBe(0);
|
|
expect(b).toBe(0);
|
|
}
|
|
|
|
function foo() {
|
|
let i = 0;
|
|
bar(i, i++);
|
|
expect(i).toBe(1);
|
|
}
|
|
foo();
|
|
});
|