Adds news Array.prototype methods groupBy() and groupByToMap() to perform a grouping or bucketing operation.
Web compat risk due to Sugar. The original proposed name of Array.prototype.groupBy was found to be incompatible. See https://github.com/tc39/proposal-array-grouping/issues/37 Currently named `group` and `groupToMap` with no known incompatibilities.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
This feature adds two new built-in Array.prototype methods, which are debuggable like all other built-in methods.
DevTrial on desktop | 100 |
DevTrial on Android | 100 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAN-e9e_OXi4njvB46nEMzTJzpoGXWEjYXEgo-7-%3DYCuT2EEeew%40mail.gmail.com.
LGTM2 to ship group and groupToMap (a bit confusing that the summary uses the old names).
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfUjGX0yL2GmzaNPXFaRiemtz%2Bd9w-SYO4MV_rLAOwnc6g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/45b9d5f4-cf5e-7b21-3f38-b0c4c4f24601%40gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/45b9d5f4-cf5e-7b21-3f38-b0c4c4f24601%40gmail.com.
I assume that like most JS features this isn't tested in WPT but rather in Test262. Are the tests for this in Test262 all passing?
On Wed, Sep 21, 2022 at 12:47 PM Daniel Bratell <brat...@gmail.com> wrote:LGTM2 to ship group and groupToMap (a bit confusing that the summary uses the old names).
On Wed, Sep 21, 2022 at 8:53 AM Philip Jägenstedt <foo...@chromium.org> wrote:I assume that like most JS features this isn't tested in WPT but rather in Test262. Are the tests for this in Test262 all passing?Correct, it is tested via test262. I've been checking that box assuming that it's a stand-in for test262, and listing the test262 tests in the "WPT description" field in chromestatus. The tests in this case are located at:All of the test262 tests are currently passing on V8.