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

Issue 5873043: Fixes a bug around assignment with no setter, and an inner hull breach. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by metaweta
Modified:
12 years, 1 month ago
Reviewers:
felix8a
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Makes ES5/3 conform to the ES5 spec and throw when trying to assign a value to an accessor property with no setter. Toxic functions could be 'laundered' by using call, bind, or apply, so an outer hull breach could be escalated to an inner hull breach. I discovered the inner hull breach when I noticed that the wrong exceptions were being thrown in ES5Rewriter; since jsUnit doesn't provide a way to check the kind of exception, I added assertThrowsMsg(fn, msg) that fails unless an exception ex is thrown and msg is a substring of ex.message.

Patch Set 1 #

Patch Set 2 : Fixes a bug around assignment and no setters and an inner hull breach. #

Total comments: 4

Patch Set 3 : Fixes a bug around assignment and no setters and an inner hull breach. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -24 lines) Patch
M src/com/google/caja/es53.js View 1 2 5 chunks +18 lines, -9 lines 0 comments Download
M tests/com/google/caja/parser/quasiliteral/ES53RewriterTest.java View 1 2 12 chunks +44 lines, -15 lines 0 comments Download

Messages

Total messages: 4
metaweta
12 years, 1 month ago (2012-03-21 20:42:17 UTC) #1
felix8a
lgtm other than some nit-picking http://codereview.appspot.com/5873043/diff/2001/src/com/google/caja/es53.js File src/com/google/caja/es53.js (right): http://codereview.appspot.com/5873043/diff/2001/src/com/google/caja/es53.js#newcode725 src/com/google/caja/es53.js:725: fn.ok___ = fn; why ...
12 years, 1 month ago (2012-03-22 20:02:57 UTC) #2
metaweta
http://codereview.appspot.com/5873043/diff/2001/src/com/google/caja/es53.js File src/com/google/caja/es53.js (right): http://codereview.appspot.com/5873043/diff/2001/src/com/google/caja/es53.js#newcode725 src/com/google/caja/es53.js:725: fn.ok___ = fn; On 2012/03/22 20:02:58, felix8a wrote: > ...
12 years, 1 month ago (2012-03-22 20:50:34 UTC) #3
felix8a
12 years, 1 month ago (2012-03-22 21:06:37 UTC) #4
lgtm
Sign in to reply to this message.

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