diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-22 15:42:44 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-22 18:44:53 +0200 |
commit | 1d203808596071b0891459dc4c9aadea4d9c4d6c (patch) | |
tree | cff6f36811b7d24bf49c7ba1eefd1d5f826f758c /Userland/Libraries/LibJS/Interpreter.h | |
parent | aabd82d50886c14741500c03fc58fb3863b45ddb (diff) | |
download | serenity-1d203808596071b0891459dc4c9aadea4d9c4d6c.zip |
LibJS: Split the per-call-frame environment into lexical and variable
To better follow the spec, we need to distinguish between the current
execution context's lexical environment and variable environment.
This patch moves us to having two record pointers, although both of
them point at the same environment records for now.
Diffstat (limited to 'Userland/Libraries/LibJS/Interpreter.h')
-rw-r--r-- | Userland/Libraries/LibJS/Interpreter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Interpreter.h b/Userland/Libraries/LibJS/Interpreter.h index 182699cd45..a342fc8b10 100644 --- a/Userland/Libraries/LibJS/Interpreter.h +++ b/Userland/Libraries/LibJS/Interpreter.h @@ -56,7 +56,7 @@ public: ALWAYS_INLINE Heap& heap() { return vm().heap(); } ALWAYS_INLINE Exception* exception() { return vm().exception(); } - EnvironmentRecord* current_environment_record() { return vm().current_environment_record(); } + EnvironmentRecord* lexical_environment() { return vm().lexical_environment(); } FunctionEnvironmentRecord* current_function_environment_record(); |