mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibJS/Bytecode: Implement the delete unary expression
`delete` has to operate directly on Reference Records, so this introduces a new set of operations called DeleteByValue, DeleteVariable and DeleteById. They operate similarly to their Get counterparts, except they end in creating a (temporary) Reference and calling delete_ on it.
This commit is contained in:
parent
589c3771e9
commit
7cc53b7ef1
6 changed files with 146 additions and 4 deletions
|
@ -23,6 +23,9 @@
|
|||
O(CreateEnvironment) \
|
||||
O(CreateVariable) \
|
||||
O(Decrement) \
|
||||
O(DeleteById) \
|
||||
O(DeleteByValue) \
|
||||
O(DeleteVariable) \
|
||||
O(Div) \
|
||||
O(EnterUnwindContext) \
|
||||
O(EnterObjectEnvironment) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue