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

Issue 2412533002: [i18n] Avoid name conflicts caused by naive minifier (Closed)

Created:
4 years, 2 months ago by jgruber
Modified:
4 years, 2 months ago
Reviewers:
Yang, Michael Achenbach
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[i18n] Avoid name conflicts caused by minifier Our minifier (tools/jsmin.py) shortens variable names it comes across. It generally tries to avoid name conflicts caused by renamed variables, but cannot handle lambda function syntax. This is what happens here. Both lambda function parameters 'x' and 'y' are not recognized as identifiers by the minifier and it thus potentially causes naming conflicts. BUG=v8:5505 Committed: https://crrev.com/32b2d7c8148683da6c04a5e35172b430fa82428a Cr-Commit-Position: refs/heads/master@{#40198}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M src/js/i18n.js View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
jgruber
4 years, 2 months ago (2016-10-11 14:38:10 UTC) #7
Yang
LGTM. How hard would it be to teach JSMin about arrow functions? https://codereview.chromium.org/2412533002/diff/1/src/js/i18n.js File src/js/i18n.js ...
4 years, 2 months ago (2016-10-12 04:56:55 UTC) #8
jgruber
I've thought about that, and it's on my TODO list. Sounds like very delicate work ...
4 years, 2 months ago (2016-10-12 06:55:08 UTC) #9
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/2412533002/20001
4 years, 2 months ago (2016-10-12 07:03:08 UTC) #12
Yang
On 2016/10/12 07:03:08, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 2 months ago (2016-10-12 07:06:18 UTC) #13
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/2412533002/20001
4 years, 2 months ago (2016-10-12 07:33:44 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-12 07:36:55 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 07:37:15 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/32b2d7c8148683da6c04a5e35172b430fa82428a
Cr-Commit-Position: refs/heads/master@{#40198}

Powered by Google App Engine
This is Rietveld 408576698