Explorar el Código

LibJS: Fix logic typo in ArgumentsObject.[[Set]]

Thanks to Linus for spotting this! :^)
Andreas Kling hace 4 años
padre
commit
7fdeb0ec74
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp

+ 1 - 1
Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp

@@ -57,7 +57,7 @@ bool ArgumentsObject::internal_set(PropertyName const& property_name, Value valu
     bool is_mapped = false;
 
     // 1. If SameValue(args, Receiver) is false, then
-    if (same_value(this, receiver)) {
+    if (!same_value(this, receiver)) {
         // a. Let isMapped be false.
         is_mapped = false;
     } else {