mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS: Generate bytecode for entering nested lexical environments
This adds a new PushLexicalEnvironment instruction that creates a new LexicalEnvironment and pushes it on the VM's scope stack. There is no corresponding PopLexicalEnvironment instruction yet, so this will behave incorrectly with let/const scopes for example.
This commit is contained in:
parent
d560ee118d
commit
c3c68399b5
Notes:
sideshowbarker
2024-07-18 12:28:40 +09:00
Author: https://github.com/awesomekling
Commit: c3c68399b5
4 changed files with 92 additions and 1 deletions
|
@ -58,6 +58,7 @@
|
|||
O(Increment) \
|
||||
O(Decrement) \
|
||||
O(Throw) \
|
||||
O(PushLexicalEnvironment) \
|
||||
O(EnterUnwindContext) \
|
||||
O(LeaveUnwindContext) \
|
||||
O(ContinuePendingUnwind)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue