Parcourir la source

LibJS: Remove outdated FIXME in GetThisEnvironment

Andreas Kling il y a 4 ans
Parent
commit
92ce4ac23f
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp

+ 0 - 1
Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp

@@ -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;