ladybird/Userland/Libraries/LibJS/Tests/optimizer-bugs.js
2024-03-05 13:39:25 +01:00

10 lines
160 B
JavaScript

test("Don't fuse unrelated jump and compare", () => {
function go(a) {
a < 3;
a &&= 1;
a < 3;
a ||= 1;
}
go();
});