Intent to Ship: Methods that change Array and TypedArray by copy

92 views
Skip to first unread message

Shu-yu Guo

unread,
Nov 8, 2022, 3:32:34 PM11/8/22
to blink-dev

Contact emails

s...@chromium.org

Explainer

https://github.com/tc39/proposal-change-array-by-copy

Specification

https://tc39.es/proposal-change-array-by-copy

Summary

Provides additional methods on Array.prototype and TypedArray.prototype to enable changes on the array by returning a new copy of it with the change.



Blink component

Blink>JavaScript>Language

TAG review

TC39 proposal that only touches Array.prototype, without other interactions with web APIs.

TAG review status

Not applicable

Risks



Interoperability and Compatibility

No interoperability risk as this is a TC39 proposal implemented in tandem by browser engines. Minimal but non-zero web compatibility risk. Any new methods on Array.prototype carries with it a web compat risk as many JS libraries add their own methods to Array.prototype, and sometimes those libraries clash with newly standardized Array.prototype.methods. Sometimes JS Arrays are also used as hash maps, and new prototype methods clash with existing keys used by the application. No current incompatibilities are known or expected.



Gecko: Positive (https://bugzilla.mozilla.org/show_bug.cgi?id=1784092) Stage 3 TC39 proposal. Gecko has already implemented.

WebKit: Positive (https://bugs.webkit.org/show_bug.cgi?id=234604) Stage 3 TC39 proposal. WebKit has already implemented.

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Debuggability

Debugged as any other existing Array.prototype method



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

In test262: see https://github.com/tc39/test262/pull/3464

Flag name

--harmony-change-array-by-copy

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/v8/issues/detail?id=12764

Estimated milestones

DevTrial on desktop108
DevTrial on Android108



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5068609911521280

This intent message was generated by Chrome Platform Status.

Daniel Bratell

unread,
Nov 9, 2022, 11:32:18 AM11/9/22
to Shu-yu Guo, blink-dev

LGTM1

/Daniel

--
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-e9e8smpdz95tNLTkPAYWQ0OkSCMxR6_S%3Dm0ManQimtO_5uA%40mail.gmail.com.

Philip Jägenstedt

unread,
Nov 9, 2022, 11:35:27 AM11/9/22
to Daniel Bratell, Shu-yu Guo, blink-dev

Chris Harrelson

unread,
Nov 9, 2022, 11:38:37 AM11/9/22
to Philip Jägenstedt, Daniel Bratell, Shu-yu Guo, blink-dev
Reply all
Reply to author
Forward
0 new messages