Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1247)

Issue 285330043: atLeastFreeVarNames must parse \u escapes. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 2 months ago by kpreid_google
Modified:
8 years ago
Reviewers:
MarkM, Jasvir
CC:
MarkM, ihab.awad, MikeSamuel, kpreid2, metaweta, felix8a, caja-discuss-undisclosed_googlegroups.com
Visibility:
Public.

Description

atLeastFreeVarNames must parse \u escapes. Fix by MarkM, tests by kpreid. Superseded by https://codereview.appspot.com/283510043/ committed as 739a368f287d119c263428367df1dffd98906d0f .

Patch Set 1 #

Total comments: 6

Patch Set 2 : atLeastFreeVarNames must parse \u escapes. #

Patch Set 3 : atLeastFreeVarNames must parse \u escapes. #

Patch Set 4 : atLeastFreeVarNames must parse \u escapes. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -2 lines) Patch
M src/com/google/caja/ses/atLeastFreeVarNames.js View 1 2 3 3 chunks +6 lines, -2 lines 1 comment Download
M tests/com/google/caja/ses/test-ses-parts.js View 1 2 3 2 chunks +93 lines, -0 lines 0 comments Download

Messages

Total messages: 13
kpreid_google
8 years, 2 months ago (2016-02-01 22:05:27 UTC) #1
MarkM
https://codereview.appspot.com/285330043/diff/1/tests/com/google/caja/ses/test-ses-parts.js File tests/com/google/caja/ses/test-ses-parts.js (right): https://codereview.appspot.com/285330043/diff/1/tests/com/google/caja/ses/test-ses-parts.js#newcode105 tests/com/google/caja/ses/test-ses-parts.js:105: result = eval(testProgram); Comment to make clear that this ...
8 years, 2 months ago (2016-02-01 22:24:40 UTC) #2
kpreid_google
Fix by MarkM, tests by kpreid.
8 years, 2 months ago (2016-02-01 22:48:31 UTC) #3
kpreid_google
Fix by MarkM, tests by kpreid.
8 years, 2 months ago (2016-02-01 22:49:40 UTC) #4
kpreid_google
https://codereview.appspot.com/285330043/diff/1/tests/com/google/caja/ses/test-ses-parts.js File tests/com/google/caja/ses/test-ses-parts.js (right): https://codereview.appspot.com/285330043/diff/1/tests/com/google/caja/ses/test-ses-parts.js#newcode105 tests/com/google/caja/ses/test-ses-parts.js:105: result = eval(testProgram); Now tests with both evaluators, and ...
8 years, 2 months ago (2016-02-01 22:51:20 UTC) #5
Jasvir
https://codereview.appspot.com/285330043/diff/1/src/com/google/caja/ses/atLeastFreeVarNames.js File src/com/google/caja/ses/atLeastFreeVarNames.js (right): https://codereview.appspot.com/285330043/diff/1/src/com/google/caja/ses/atLeastFreeVarNames.js#newcode153 src/com/google/caja/ses/atLeastFreeVarNames.js:153: name = JSON.parse('"' + name + '"'); I found ...
8 years, 2 months ago (2016-02-01 23:01:14 UTC) #6
MarkM
Modulo Jasvir's suggestion, LGTM
8 years, 2 months ago (2016-02-01 23:07:19 UTC) #7
MarkM
To be clear, once you implement Jasvir's suggestion, LGTM without any need to rereview.
8 years, 2 months ago (2016-02-01 23:08:56 UTC) #8
kpreid_google
Fix by MarkM, tests by kpreid.
8 years, 2 months ago (2016-02-01 23:34:54 UTC) #9
kpreid_google
MarkM, please take a look — testing found another bug and I had to change ...
8 years, 2 months ago (2016-02-01 23:36:21 UTC) #10
MarkM
https://codereview.appspot.com/285330043/diff/60001/src/com/google/caja/ses/atLeastFreeVarNames.js File src/com/google/caja/ses/atLeastFreeVarNames.js (right): https://codereview.appspot.com/285330043/diff/60001/src/com/google/caja/ses/atLeastFreeVarNames.js#newcode119 src/com/google/caja/ses/atLeastFreeVarNames.js:119: return /(\w|\\u[0-9a-fA-F]{4}|\$)+/g; Oops. I should have caught this in ...
8 years, 2 months ago (2016-02-01 23:38:54 UTC) #11
MarkM
I agree that we should figure out how to improve this. But remaining improvements can ...
8 years, 2 months ago (2016-02-01 23:41:37 UTC) #12
Jasvir
8 years, 2 months ago (2016-02-02 01:58:05 UTC) #13
LGTM

On 2016/02/01 23:41:37, MarkM wrote:
> I agree that we should figure out how to improve this. But remaining
> improvements can happen after this CL. LGTM.
> 
> I am embarrassed about the \d{4} bug, but it looks fine now. Yes, it is a
shame
> this was not somehow caught automatically.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b