Skip to content

Normative: Define %TypedArray%.prototype.toLocaleString - #1095

Open
gibson042 wants to merge 2 commits into
tc39:mainfrom
gibson042:2026-08-define-typedarray-tolocalestring
Open

gibson042 wants to merge 2 commits into
tc39:mainfrom
gibson042:2026-08-define-typedarray-tolocalestring

Conversation

@gibson042

@gibson042 gibson042 commented Aug 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #1094
Depends upon JoinIndexedProperties and LocalizedListSeparator from tc39/ecma262#3958

@gibson042
gibson042 force-pushed the 2026-08-define-typedarray-tolocalestring branch 2 times, most recently from d379b1b to 1196898 Compare August 24, 2026 17:04
@gibson042 gibson042 added web reality s: discuss Status: TG2 must discuss to move forward normative needs consensus labels Aug 24, 2026
@gibson042 gibson042 moved this to Priority Issues in ECMA-402 Meeting Topics Aug 24, 2026
Comment thread spec/locale-sensitive-functions.html Outdated
1. Set _result_ to the string-concatenation of _result_ and _elementString_.
1. Set _k_ to _k_ + 1.
1. Return _result_.
1. Return ? JoinIndexedProperties(_array_, _length_, ~auto~, *"toLocaleString"*, « _locales_, _options_ »).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like we should pass _separator_ in here instead of relying on 262 to have the ILD behavior

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to pass it explicitly, but using an operation defined in ECMA-262.

@sffc sffc moved this from Priority Issues to Previously Discussed in ECMA-402 Meeting Topics Sep 17, 2026
@gibson042
gibson042 force-pushed the 2026-08-define-typedarray-tolocalestring branch from 1196898 to 382e8eb Compare September 17, 2026 18:36

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs consensus normative s: discuss Status: TG2 must discuss to move forward web reality

Projects

Status: Previously Discussed

Development

Successfully merging this pull request may close these issues.

ECMA-402 should define overriding of %TypedArray%.prototype.toLocaleString

2 participants