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

Thanks to Linus for spotting this! :^)
This commit is contained in:
Andreas Kling 2021-07-05 02:52:02 +02:00
parent a0acb6f058
commit 7fdeb0ec74
Notes: sideshowbarker 2024-07-18 10:25:04 +09:00

View file

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