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

Issue 10075043: Minor uncontributed improvements (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by MarkM
Modified:
12 years, 8 months ago
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Several little things * changed many double quoted strings to single quotes * StringMap can now be used without ses * optional source position for evalators have been moved into the options object * removed "skip" from whitelist and whitelist mechanism since we don't currently need it

Patch Set 1 #

Patch Set 2 : Minor uncontributed improvements #

Total comments: 6

Patch Set 3 : Minor uncontributed improvements #

Patch Set 4 : Minor uncontributed improvements #

Patch Set 5 : Minor uncontributed improvements #

Patch Set 6 : Minor uncontributed improvements #

Patch Set 7 : Minor uncontributed improvements #

Total comments: 20

Patch Set 8 : Minor uncontributed improvements #

Patch Set 9 : Minor uncontributed improvements #

Patch Set 10 : Minor uncontributed improvements #

Patch Set 11 : Minor uncontributed improvements #

Total comments: 10

Patch Set 12 : Minor uncontributed improvements #

Patch Set 13 : Minor uncontributed improvements #

Total comments: 2

Patch Set 14 : Minor uncontributed improvements #

Patch Set 15 : Minor uncontributed improvements #

Patch Set 16 : Minor uncontributed improvements #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -73 lines) Patch
M src/com/google/caja/ses/StringMap.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -4 lines 0 comments Download
M src/com/google/caja/ses/WeakMap.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M src/com/google/caja/ses/atLeastFreeVarNames.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -6 lines 0 comments Download
M src/com/google/caja/ses/compileExprLater.js View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -8 lines 0 comments Download
M src/com/google/caja/ses/debug.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/ses/explicit.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M src/com/google/caja/ses/makeSimpleAMDLoader.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/ses/repairES5.js View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -4 lines 0 comments Download
M src/com/google/caja/ses/startSES.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 16 chunks +28 lines, -31 lines 0 comments Download
M src/com/google/caja/ses/whitelist.js View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +1 line, -17 lines 0 comments Download

Messages

Total messages: 40
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 9 months ago (2013-06-06 06:36:35 UTC) #1
kpreid2
https://codereview.appspot.com/10075043/diff/2001/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): https://codereview.appspot.com/10075043/diff/2001/src/com/google/caja/ses/repairES5.js#newcode3901 src/com/google/caja/ses/repairES5.js:3901: * reactions to tests and repairs. Off for now ...
12 years, 9 months ago (2013-06-06 16:41:43 UTC) #2
MarkM
https://codereview.appspot.com/10075043/diff/2001/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): https://codereview.appspot.com/10075043/diff/2001/src/com/google/caja/ses/repairES5.js#newcode3901 src/com/google/caja/ses/repairES5.js:3901: * reactions to tests and repairs. Off for now ...
12 years, 9 months ago (2013-06-07 02:57:23 UTC) #3
kpreid2
https://codereview.appspot.com/10075043/diff/2001/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): https://codereview.appspot.com/10075043/diff/2001/src/com/google/caja/ses/repairES5.js#newcode3901 src/com/google/caja/ses/repairES5.js:3901: * reactions to tests and repairs. Off for now ...
12 years, 9 months ago (2013-06-08 00:23:16 UTC) #4
kpreid2
https://codereview.appspot.com/10075043/diff/2001/src/com/google/caja/ses/repairES5.js File src/com/google/caja/ses/repairES5.js (right): https://codereview.appspot.com/10075043/diff/2001/src/com/google/caja/ses/repairES5.js#newcode3901 src/com/google/caja/ses/repairES5.js:3901: * reactions to tests and repairs. Off for now ...
12 years, 9 months ago (2013-06-08 00:23:16 UTC) #5
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 9 months ago (2013-06-09 01:34:21 UTC) #6
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 9 months ago (2013-06-09 05:41:57 UTC) #7
MarkM
But "ant runtests" fails differently, and I don't know how to diagnose it. https://codereview.appspot.com/10075043/diff/2001/src/com/google/caja/ses/repairES5.js File ...
12 years, 9 months ago (2013-06-09 05:50:22 UTC) #8
Mark S. Miller
[transform] WARNING : repairES5.js:789+7 - 15: Operation has no effect [transform] repairES5.js:789: desc.set; // yes, ...
12 years, 9 months ago (2013-06-09 05:54:22 UTC) #9
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 9 months ago (2013-06-09 05:59:20 UTC) #10
kpreid2
On 2013/06/09 05:54:22, Mark S. Miller wrote: > [transform] WARNING : repairES5.js:789+7 - 15: Operation ...
12 years, 9 months ago (2013-06-09 13:16:54 UTC) #11
Mark S. Miller
I had no idea. That was it. Tests pass now. Thanks. On Sun, Jun 9, ...
12 years, 9 months ago (2013-06-09 15:39:43 UTC) #12
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 9 months ago (2013-06-09 15:40:44 UTC) #13
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 9 months ago (2013-06-09 15:59:17 UTC) #14
MarkM
Mousing over the issue number in codereview indicates that I have two draft comments, but ...
12 years, 9 months ago (2013-06-09 16:26:29 UTC) #15
MarkM
On 2013/06/09 16:26:29, MarkM wrote: > Mousing over the issue number in codereview indicates that ...
12 years, 9 months ago (2013-06-09 16:27:25 UTC) #16
felix8a
On 2013/06/09 16:26:29, MarkM wrote: > Mousing over the issue number in codereview indicates that ...
12 years, 9 months ago (2013-06-09 19:06:10 UTC) #17
Mark S. Miller
Just tried it. No dice. On Sun, Jun 9, 2013 at 12:06 PM, <felix8a@gmail.com> wrote: ...
12 years, 9 months ago (2013-06-09 19:08:53 UTC) #18
kpreid2
General comment: I am concerned about the number of unrelated changes here. I think this ...
12 years, 9 months ago (2013-06-10 20:44:35 UTC) #19
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 9 months ago (2013-06-11 03:30:26 UTC) #20
MarkM
Not separated into separate CL yet. Snapshotting first so you can see the changes made ...
12 years, 9 months ago (2013-06-11 03:35:47 UTC) #21
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 9 months ago (2013-06-13 16:03:56 UTC) #22
MarkM
Removed changes which have moved to https://codereview.appspot.com/10181043/ Still haven't separated new Opera test case into ...
12 years, 9 months ago (2013-06-13 16:07:27 UTC) #23
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 8 months ago (2013-07-06 22:57:10 UTC) #24
MarkM
On 2013/06/13 16:07:27, MarkM wrote: > Removed changes which have moved to https://codereview.appspot.com/10181043/ > > ...
12 years, 8 months ago (2013-07-06 23:03:09 UTC) #25
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 8 months ago (2013-07-07 02:49:38 UTC) #26
kpreid2
https://codereview.appspot.com/10075043/diff/86001/src/com/google/caja/ses/StringMap.js File src/com/google/caja/ses/StringMap.js (right): https://codereview.appspot.com/10075043/diff/86001/src/com/google/caja/ses/StringMap.js#newcode20 src/com/google/caja/ses/StringMap.js:20: * @overrides ses Instead of @overrides (I assume this ...
12 years, 8 months ago (2013-07-09 16:34:59 UTC) #27
kpreid2
Oh, and please update the change description for the current contents, and to be less ...
12 years, 8 months ago (2013-07-09 16:35:48 UTC) #28
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 8 months ago (2013-07-12 02:25:00 UTC) #29
MarkM
Array.prototype.length no longer needs to be skipped as the relevant bug is long dead. Test ...
12 years, 8 months ago (2013-07-12 02:34:35 UTC) #30
MarkM
https://codereview.appspot.com/10075043/diff/86001/src/com/google/caja/ses/StringMap.js File src/com/google/caja/ses/StringMap.js (right): https://codereview.appspot.com/10075043/diff/86001/src/com/google/caja/ses/StringMap.js#newcode20 src/com/google/caja/ses/StringMap.js:20: * @overrides ses On 2013/07/09 16:34:59, kpreid2 wrote: > ...
12 years, 8 months ago (2013-07-12 02:34:57 UTC) #31
kpreid2
LGTM https://codereview.appspot.com/10075043/diff/97001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10075043/diff/97001/src/com/google/caja/ses/startSES.js#newcode292 src/com/google/caja/ses/startSES.js:292: // transient deprecated adaptor only, since there used ...
12 years, 8 months ago (2013-07-12 20:50:13 UTC) #32
kpreid2
On 2013/07/12 20:50:13, kpreid2 wrote: > LGTM Correction: Please update the change description to reflect ...
12 years, 8 months ago (2013-07-12 20:50:51 UTC) #33
MarkM
Several little things * changed many double quoted strings to single quotes * StringMap can ...
12 years, 8 months ago (2013-07-12 21:53:49 UTC) #34
MarkM
https://codereview.appspot.com/10075043/diff/97001/src/com/google/caja/ses/startSES.js File src/com/google/caja/ses/startSES.js (right): https://codereview.appspot.com/10075043/diff/97001/src/com/google/caja/ses/startSES.js#newcode292 src/com/google/caja/ses/startSES.js:292: // transient deprecated adaptor only, since there used to ...
12 years, 8 months ago (2013-07-12 21:54:15 UTC) #35
MarkM
Several little things * changed many double quoted strings to single quotes * StringMap can ...
12 years, 8 months ago (2013-07-13 04:05:11 UTC) #36
MarkM
Also added some minor fixes to WeakMap.js and atLeastFreeVariableNames.js to address complaints from the linker. ...
12 years, 8 months ago (2013-07-13 04:18:46 UTC) #37
kpreid2
https://codereview.appspot.com/10075043/diff/86001/src/com/google/caja/ses/StringMap.js File src/com/google/caja/ses/StringMap.js (right): https://codereview.appspot.com/10075043/diff/86001/src/com/google/caja/ses/StringMap.js#newcode20 src/com/google/caja/ses/StringMap.js:20: * @overrides ses On 2013/07/13 04:18:47, MarkM wrote: > ...
12 years, 8 months ago (2013-07-13 04:24:01 UTC) #38
MarkM
Several little things * changed many double quoted strings to single quotes * StringMap can ...
12 years, 8 months ago (2013-07-13 15:27:28 UTC) #39
MarkM
12 years, 8 months ago (2013-07-13 15:34:11 UTC) #40
On 2013/07/13 04:24:01, kpreid2 wrote:
>
https://codereview.appspot.com/10075043/diff/86001/src/com/google/caja/ses/St...
> File src/com/google/caja/ses/StringMap.js (right):
> 
>
https://codereview.appspot.com/10075043/diff/86001/src/com/google/caja/ses/St...
> src/com/google/caja/ses/StringMap.js:20: * @overrides ses
> On 2013/07/13 04:18:47, MarkM wrote:
> > Doing as suggested (patch 14) broke runtests, apparently detecting the kind
of
> > inconsistency you raised. With patch 15, which chains tests analogously to
the
> > original, runtests completes successfully. Not sure why yet.
> 
> That's a bit vague. Which of the objects in the chain is missing? (The error
> should have a relevant property name.) Or more generally, which tests fail?
What
> does the Chrome console show for those which do?

The problem is that some tests test that things fail clearly when repairES5.js
fails in various ways (test-ses.html). When the try/catch at the bottom of
repairES5 takes the catch branch, it will not initialize es5ProblemReports to
not get initialized, causing the revised StringMap to fail uncleanly. Patch 16
fixes StringMap to only check the problemReports if ses.ok(). Additionally, if
no ses, or if !ses.ok(), or if the specific problem is indicated, in all these
cases it assumes Object.create might be broken and takes the more conservative
route. This is a minor improvement over the pre-CL state, though I expect it
will never matter.
Sign in to reply to this message.

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