summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Array.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-04-30 22:22:52 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-01 22:47:38 +0200
commit5a26a547dbd3e0a05f0f8991876b254ba044103e (patch)
tree4e807a2f60a5651d415a0536a37233a12306a4f4 /Userland/Libraries/LibJS/Runtime/Array.cpp
parentce659e5eeba08989ff671e86a691ca83315bc722 (diff)
downloadserenity-5a26a547dbd3e0a05f0f8991876b254ba044103e.zip
LibJS: Update a couple of outdated spec comments
These are editorial changes in the ECMA-262 spec. See: - https://github.com/tc39/ecma262/commit/e080a7f - https://github.com/tc39/ecma262/commit/c5a9094 - https://github.com/tc39/ecma262/commit/5091520 - https://github.com/tc39/ecma262/commit/1c6564b - https://github.com/tc39/ecma262/commit/e06c80c
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Array.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Array.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Array.cpp b/Userland/Libraries/LibJS/Runtime/Array.cpp
index 0c3bdc3a04..19c825d8dc 100644
--- a/Userland/Libraries/LibJS/Runtime/Array.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Array.cpp
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
- * Copyright (c) 2020-2021, Linus Groh <linusg@serenityos.org>
+ * Copyright (c) 2020-2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -82,7 +82,7 @@ ThrowCompletionOr<bool> Array::set_length(PropertyDescriptor const& property_des
// 12. If oldLenDesc.[[Writable]] is false, return false.
// NOTE: Handled by step 16
- // 13. If newLenDesc.[[Writable]] is absent or has the value true, let newWritable be true.
+ // 13. If newLenDesc.[[Writable]] is absent or is true, let newWritable be true.
// 14. Else,
// a. NOTE: Setting the [[Writable]] attribute to false is deferred in case any elements cannot be deleted.
// b. Let newWritable be false.