mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
LibJS: Remove outdated FIXME in GetThisEnvironment
This commit is contained in:
parent
07acdc7be2
commit
92ce4ac23f
Notes:
sideshowbarker
2024-07-18 11:32:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/92ce4ac23fa
@ -181,7 +181,6 @@ ObjectEnvironmentRecord* new_object_environment(Object& object, bool is_with_env
|
||||
// 9.4.3 GetThisEnvironment ( ), https://tc39.es/ecma262/#sec-getthisenvironment
|
||||
EnvironmentRecord& get_this_environment(VM& vm)
|
||||
{
|
||||
// FIXME: Should be the *lexical* environment.
|
||||
for (auto* env = vm.lexical_environment(); env; env = env->outer_environment()) {
|
||||
if (env->has_this_binding())
|
||||
return *env;
|
||||
|
Loading…
Reference in New Issue
Block a user