From a4d0a6e1c17038b9ed8a9624372a0c464129aff5 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 13 Jun 2022 20:15:56 +0100 Subject: [PATCH] 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 --- Userland/Libraries/LibJS/Runtime/ArrayPrototype.cpp | 6 ++---- 1 file 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);