Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Issue 2239523002: Expose getCanonicalLocales() for Intl object (Closed)

Created:
4 years, 4 months ago by jungshik at Google
Modified:
4 years, 4 months ago
Reviewers:
Dan Ehrenberg, adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Expose getCanonicalLocales() for Intl object. Also add a test for the return object of getCanonicalLocaleList(). See https://github.com/tc39/test262/issues/745 for more details. BUG=v8:5012 TEST=test262/intl402/Intl/getCanonicalLocales/* TEST=intl/general/getCanonicalLocales Committed: https://crrev.com/520f38fce79bf6370f46c4d3326e52bbd962030c Cr-Commit-Position: refs/heads/master@{#38733}

Patch Set 1 #

Patch Set 2 : fix a case with negative length #

Total comments: 1

Patch Set 3 : disable failing tests with comments #

Total comments: 1

Patch Set 4 : do not freeze array #

Total comments: 1

Patch Set 5 : add a test for the mutability #

Patch Set 6 : make individual elements frozen, but let the result array be expandable #

Patch Set 7 : do not use boolean #

Patch Set 8 : go back to PS 6, but explicitly set the array length regardless of expandability #

Patch Set 9 : fix a typo in test262 bug reference #

Patch Set 10 : return array is mutable #

Total comments: 1

Patch Set 11 : check if returned object is an array #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -10 lines) Patch
M src/js/i18n.js View 1 2 3 4 5 6 7 8 9 7 chunks +42 lines, -9 lines 0 comments Download
M src/runtime/runtime-i18n.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
A test/intl/general/getCanonicalLocales.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 54 (31 generated)
jungshik at Google
PTAL. Thanks https://codereview.chromium.org/2239523002/diff/20001/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/2239523002/diff/20001/src/js/i18n.js#newcode781 src/js/i18n.js:781: %_Call(ArrayPush, seen, tag); intl402/Intl/getCanonicalLocales/overriden-push.js tests if 'push' ...
4 years, 4 months ago (2016-08-11 20:56:40 UTC) #4
Dan Ehrenberg
https://codereview.chromium.org/2239523002/diff/40001/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/2239523002/diff/40001/src/js/i18n.js#newcode906 src/js/i18n.js:906: return initializeLocaleList(locales); This outputs a frozen Array, but the ...
4 years, 4 months ago (2016-08-11 21:07:01 UTC) #5
jungshik at Google
Dan, PS #4 fixed that. can you take a look? Thanks
4 years, 4 months ago (2016-08-12 18:38:10 UTC) #10
Dan Ehrenberg
Could you make a local test to tide us over for this patch until the ...
4 years, 4 months ago (2016-08-12 18:59:19 UTC) #11
jungshik at Google
On 2016/08/12 18:59:19, Dan Ehrenberg wrote: > Could you make a local test to tide ...
4 years, 4 months ago (2016-08-12 22:22:41 UTC) #14
Dan Ehrenberg
On 2016/08/12 at 22:22:41, jshin wrote: > On 2016/08/12 18:59:19, Dan Ehrenberg wrote: > > ...
4 years, 4 months ago (2016-08-12 22:28:48 UTC) #15
jungshik at Google
On 2016/08/12 22:28:48, Dan Ehrenberg wrote: > On 2016/08/12 at 22:22:41, jshin wrote: > > ...
4 years, 4 months ago (2016-08-13 05:57:42 UTC) #16
Dan Ehrenberg
lgtm
4 years, 4 months ago (2016-08-13 16:19:32 UTC) #17
Dan Ehrenberg
As a matter of style, you may want to just return the InternalArray and then ...
4 years, 4 months ago (2016-08-13 16:20:31 UTC) #18
jungshik at Google
On 2016/08/13 16:20:31, Dan Ehrenberg wrote: . Oops. Sorry for the confusion. PS #5 does ...
4 years, 4 months ago (2016-08-14 07:25:52 UTC) #23
jungshik at Google
On 2016/08/14 07:25:52, jungshik at google wrote: > > As a matter of style, you ...
4 years, 4 months ago (2016-08-14 08:25:15 UTC) #24
jungshik at Google
Dan, can you answer caridy's question at https://github.com/tc39/test262/pull/746 ? Thanks
4 years, 4 months ago (2016-08-15 19:36:35 UTC) #30
jungshik at Google
Based on the discussion at github / test262, I updated the CL to return a ...
4 years, 4 months ago (2016-08-16 07:48:15 UTC) #33
jungshik at Google
https://codereview.chromium.org/2239523002/diff/180001/src/js/i18n.js File src/js/i18n.js (right): https://codereview.chromium.org/2239523002/diff/180001/src/js/i18n.js#newcode570 src/js/i18n.js:570: * When |expandable| is true, the result array can ...
4 years, 4 months ago (2016-08-16 08:51:39 UTC) #36
Dan Ehrenberg
This patch both implements and ships the feature, rather than guarding it behind a flag. ...
4 years, 4 months ago (2016-08-16 15:08:49 UTC) #38
jungshik at Google
On 2016/08/16 15:08:49, Dan Ehrenberg wrote: > This patch both implements and ships the feature, ...
4 years, 4 months ago (2016-08-16 18:27:40 UTC) #40
jungshik at Google
On 2016/08/16 18:27:40, jungshik at google wrote: > On 2016/08/16 15:08:49, Dan Ehrenberg wrote: > ...
4 years, 4 months ago (2016-08-17 21:55:13 UTC) #41
jungshik at Google
On 2016/08/17 21:55:13, jungshik at google wrote: > On 2016/08/16 18:27:40, jungshik at google wrote: ...
4 years, 4 months ago (2016-08-18 07:45:11 UTC) #42
jungshik at Google
On 2016/08/18 07:45:11, jungshik at google wrote: > On 2016/08/17 21:55:13, jungshik at google wrote: ...
4 years, 4 months ago (2016-08-18 20:06:49 UTC) #47
Dan Ehrenberg
lgtm
4 years, 4 months ago (2016-08-18 20:13:35 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2239523002/200001
4 years, 4 months ago (2016-08-18 23:25:02 UTC) #50
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-18 23:27:05 UTC) #52
commit-bot: I haz the power
4 years, 4 months ago (2016-08-18 23:27:36 UTC) #54
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/520f38fce79bf6370f46c4d3326e52bbd962030c
Cr-Commit-Position: refs/heads/master@{#38733}

Powered by Google App Engine
This is Rietveld 408576698