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
commit 93eae063a1
Notes: sideshowbarker 2024-07-18 12:40:17 +09:00
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) \