LibJS: Fix logic typo in ArgumentsObject.[[Set]]
Thanks to Linus for spotting this! :^)
This commit is contained in:
parent
a0acb6f058
commit
7fdeb0ec74
Notes:
sideshowbarker
2024-07-18 10:25:04 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7fdeb0ec746
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue