summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-06-13 20:15:56 +0100
committerLinus Groh <mail@linusgroh.de>2022-06-13 20:15:56 +0100
commita4d0a6e1c17038b9ed8a9624372a0c464129aff5 (patch)
treed2d20d76e4248327cfbf9f2a0943edc93664262d /Userland/Libraries/LibJS/Runtime
parent013e2df858a34227e8fe32d40cd5722ec40c8a31 (diff)
downloadserenity-a4d0a6e1c17038b9ed8a9624372a0c464129aff5.zip
LibJS: Update Array.prototype.group{,ToMap} spec URLs
This is an editorial change in the Array Grouping spec. See: https://github.com/tc39/proposal-array-grouping/commit/c51cac5
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp b/Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp
index c2ccc1984c..efbe057e47 100644
--- a/Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp
@@ -1695,8 +1695,7 @@ static void add_value_to_keyed_group(GlobalObject& global_object, GroupsType& gr
VERIFY(result == AK::HashSetResult::InsertedNewEntry);
}
-// FIXME: Spec has incorrect function ID
-// 2.1 Array.prototype.group ( callbackfn [ , thisArg ] ), https://tc39.es/proposal-array-grouping/#sec-array.prototype.groupby
+// 2.1 Array.prototype.group ( callbackfn [ , thisArg ] ), https://tc39.es/proposal-array-grouping/#sec-array.prototype.group
JS_DEFINE_NATIVE_FUNCTION(ArrayPrototype::group)
{
auto callback_function = vm.argument(0);
@@ -1750,8 +1749,7 @@ JS_DEFINE_NATIVE_FUNCTION(ArrayPrototype::group)
return object;
}
-// FIXME: Spec has incorrect function ID
-// 2.2 Array.prototype.groupToMap ( callbackfn [ , thisArg ] ), https://tc39.es/proposal-array-grouping/#sec-array.prototype.groupbymap
+// 2.2 Array.prototype.groupToMap ( callbackfn [ , thisArg ] ), https://tc39.es/proposal-array-grouping/#sec-array.prototype.grouptomap
JS_DEFINE_NATIVE_FUNCTION(ArrayPrototype::group_to_map)
{
auto callback_function = vm.argument(0);