1
Fork 0
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:
Andreas Kling 2020-11-28 16:14:26 +01:00
parent c3fe9b4df8
commit 9de6443ab7
4 changed files with 135 additions and 2 deletions

View file

@ -76,6 +76,7 @@ set(SOURCES
Runtime/Uint8ClampedArray.cpp
Runtime/VM.cpp
Runtime/Value.cpp
Runtime/WithScope.cpp
Token.cpp
)