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

Issue 2236593002: Throw when case mapping result > max string length (Closed)

Created:
4 years, 4 months ago by jungshik at Google
Modified:
4 years, 4 months ago
Reviewers:
Dan Ehrenberg
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

Throw when case mapping result > max string length Throw 'Range Error: invalid string length' when the result of case mapping is longer than the max string length (kMaxLength in objects.h = 1 << 28 - 16). This is for case mapping with ICU. BUG=v8:5271 TEST=intl/general/case-mapping.js with --icu_case_mapping Committed: https://crrev.com/c7a2046670468b900b9dbbb4ce45beb5e0e717fd Cr-Commit-Position: refs/heads/master@{#38565}

Patch Set 1 #

Patch Set 2 : add tests #

Total comments: 2

Patch Set 3 : AssertThrows and destructuring #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -2 lines) Patch
M src/runtime/runtime-i18n.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M test/intl/general/case-mapping.js View 1 2 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
jungshik at Google
PTAL. Thanks
4 years, 4 months ago (2016-08-10 19:04:23 UTC) #3
Dan Ehrenberg
lgtm https://codereview.chromium.org/2236593002/diff/20001/test/intl/general/case-mapping.js File test/intl/general/case-mapping.js (right): https://codereview.chromium.org/2236593002/diff/20001/test/intl/general/case-mapping.js#newcode152 test/intl/general/case-mapping.js:152: invalidValues.forEach(function(value) { Wouldn't this be a great place ...
4 years, 4 months ago (2016-08-10 19:06:23 UTC) #4
Dan Ehrenberg
lgtm Small nit, but fine to submit as is. https://codereview.chromium.org/2236593002/diff/20001/test/intl/general/case-mapping.js File test/intl/general/case-mapping.js (right): https://codereview.chromium.org/2236593002/diff/20001/test/intl/general/case-mapping.js#newcode172 test/intl/general/case-mapping.js:172: ...
4 years, 4 months ago (2016-08-10 19:08:02 UTC) #5
jungshik at Google
On 2016/08/10 19:08:02, Dan Ehrenberg wrote: > lgtm > > Small nit, but fine to ...
4 years, 4 months ago (2016-08-10 20:18:10 UTC) #6
Dan Ehrenberg
lgtm
4 years, 4 months ago (2016-08-10 20:58:05 UTC) #7
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/2236593002/40001
4 years, 4 months ago (2016-08-10 21:11:06 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-10 21:45:58 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c7a2046670468b900b9dbbb4ce45beb5e0e717fd Cr-Commit-Position: refs/heads/master@{#38565}
4 years, 4 months ago (2016-08-10 21:46:15 UTC) #13
Michael Achenbach
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2236343002/ by machenbach@chromium.org. ...
4 years, 4 months ago (2016-08-11 12:04:01 UTC) #14
Michael Achenbach
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2236393002/ by machenbach@chromium.org. ...
4 years, 4 months ago (2016-08-11 13:39:29 UTC) #16
Michael Achenbach
4 years, 4 months ago (2016-08-11 13:40:06 UTC) #17
Message was sent while issue was closed.
I deleted patchset 4 because adding patchsets after a CL has landed blocks the
revert functionality.

Powered by Google App Engine
This is Rietveld 408576698