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

Issue 224054: Fix problem with Expression.fold changing meaning of code. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 4 months ago by MikeSamuel
Modified:
16 years, 3 months ago
Reviewers:
metaweta
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

There are a number of places in the ES spec where the meaning of a code construct is dependent on the context in which it appears. Specifically, eval and foo.bar both have different meanings when they appear are the first operand to the function call operator. Submitted @3999

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -34 lines) Patch
M src/com/google/caja/ancillary/opt/JsOptimizer.java View 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/ancillary/opt/ParseTreeKB.java View 12 chunks +20 lines, -12 lines 0 comments Download
M src/com/google/caja/ancillary/opt/StatementSimplifier.java View 3 chunks +4 lines, -3 lines 0 comments Download
M src/com/google/caja/parser/js/AbstractExpression.java View 1 chunk +1 line, -1 line 0 comments Download
M src/com/google/caja/parser/js/Expression.java View 1 chunk +7 lines, -1 line 2 comments Download
M src/com/google/caja/parser/js/Operation.java View 3 chunks +26 lines, -4 lines 0 comments Download
M tests/com/google/caja/ancillary/opt/ParseTreeKBTest.java View 1 chunk +1 line, -1 line 0 comments Download
M tests/com/google/caja/parser/js/ExpressionTest.java View 2 chunks +24 lines, -11 lines 0 comments Download

Messages

Total messages: 6
MikeSamuel
16 years, 4 months ago (2010-02-25 20:00:45 UTC) #1
Mark S. Miller
On Thu, Feb 25, 2010 at 12:00 PM, <mikesamuel@gmail.com> wrote: > Reviewers: metaweta, > > ...
16 years, 4 months ago (2010-02-25 23:37:42 UTC) #2
MikeSamuel
2010/2/25 Mark S. Miller <erights@google.com>: > On Thu, Feb 25, 2010 at 12:00 PM, <mikesamuel@gmail.com> ...
16 years, 4 months ago (2010-02-26 01:04:13 UTC) #3
MikeSamuel
ping
16 years, 3 months ago (2010-03-02 01:23:16 UTC) #4
metaweta
LGTM modulo the typo http://codereview.appspot.com/224054/diff/1/6 File src/com/google/caja/parser/js/Expression.java (right): http://codereview.appspot.com/224054/diff/1/6#newcode59 src/com/google/caja/parser/js/Expression.java:59: * of eub-expressions, such as ...
16 years, 3 months ago (2010-03-02 22:22:57 UTC) #5
MikeSamuel
16 years, 3 months ago (2010-03-02 22:44:15 UTC) #6
http://codereview.appspot.com/224054/diff/1/6
File src/com/google/caja/parser/js/Expression.java (right):

http://codereview.appspot.com/224054/diff/1/6#newcode59
src/com/google/caja/parser/js/Expression.java:59: *     of eub-expressions, such
as the value of {@code this} in a method call
On 2010/03/02 22:22:58, metaweta wrote:
> sub-expressions

Done.
Sign in to reply to this message.

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