Files
serenity/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp
samu698 980de1b160 LibJS: Don't generate useless jumps for if statement
If statements without an else clause generated jumps to the next
instruction, this commit fixes the if statement generation so that it
dosen't produce them anymore.

This is an example of JS code that generates the useless jumps
(a => if(a){}) ();

(cherry picked from commit 7865fbfe6d04a79a253a38eaec5c21c2bde110b5)
2024-11-11 10:11:22 -05:00

167 KiB