1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

LibJS: Make sure that if expressions yield the correct value

When evaluated as an expression "if (true) { 3 } else { 5 }"
should yield 3. This updates the bytecode interpreter to make
it so.
This commit is contained in:
Gunnar Beutner 2021-06-07 22:05:09 +02:00 committed by Andreas Kling
parent 2c10bd72f2
commit 93eae063a1
4 changed files with 34 additions and 5 deletions

View file

@ -11,6 +11,7 @@
#define ENUMERATE_BYTECODE_OPS(O) \
O(Load) \
O(LoadRegister) \
O(Add) \
O(Sub) \
O(Mul) \