mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:07:35 +00:00
LibJS: Add basic support for "with" statements
with statements evaluate an expression and put the result of it at the "front" of the scope chain. This is implemented by creating a WithScope object and placing it in front of the VM's current call frame's scope.
This commit is contained in:
parent
c3fe9b4df8
commit
9de6443ab7
4 changed files with 135 additions and 2 deletions
|
@ -76,6 +76,7 @@ set(SOURCES
|
|||
Runtime/Uint8ClampedArray.cpp
|
||||
Runtime/VM.cpp
|
||||
Runtime/Value.cpp
|
||||
Runtime/WithScope.cpp
|
||||
Token.cpp
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue