mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibJS: Add support for SpreadExpressions in array literals for bytecode
For this it adds another opcode `Append $lhs` which appends the accumulator to the Array in $lhs, optionally spreading it.
This commit is contained in:
parent
4235b2020f
commit
ae52ae8f9f
4 changed files with 109 additions and 27 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
#define ENUMERATE_BYTECODE_OPS(O) \
|
||||
O(Add) \
|
||||
O(Append) \
|
||||
O(BitwiseAnd) \
|
||||
O(BitwiseNot) \
|
||||
O(BitwiseOr) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue