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

Issue 4547070: Enhance es5shim.js to adapt to presence of bugs to be worked around. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by MarkM
Modified:
15 years, 5 months ago
Reviewers:
kpreid2, ihab.awad
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

For each bug handled by es5shim, test and report for its presence, and only work around a bug on those platforms where that bug is detected. Now that we work around https://bugzilla.mozilla.org/show_bug.cgi?id=637994 , we restore the original getter logic to WeakMap.js, so the WeakMap emulation can prevent identity stealing even on platforms suffering from that bug.

Patch Set 1 #

Patch Set 2 : Enhance es5shim.js to adapt to presence of bugs to be worked around. #

Patch Set 3 : Enhance es5shim.js to adapt to presence of bugs to be worked around. #

Patch Set 4 : Enhance es5shim.js to adapt to presence of bugs to be worked around. #

Patch Set 5 : Enhance es5shim.js to adapt to presence of bugs to be worked around. #

Patch Set 6 : Enhance es5shim.js to adapt to presence of bugs to be worked around. #

Patch Set 7 : Enhance es5shim.js to adapt to presence of bugs to be worked around. #

Patch Set 8 : Enhance es5shim.js to adapt to presence of bugs to be worked around. #

Patch Set 9 : Enhance es5shim.js to adapt to presence of bugs to be worked around. #

Total comments: 14

Patch Set 10 : Enhance es5shim.js to adapt to presence of bugs to be worked around. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+468 lines, -89 lines) Patch
M src/com/google/caja/ses/WeakMap.js View 1 2 3 4 5 6 chunks +31 lines, -39 lines 0 comments Download
M src/com/google/caja/ses/es5shim.js View 1 2 3 4 5 6 7 8 9 13 chunks +437 lines, -50 lines 0 comments Download

Messages

Total messages: 5
MarkM
15 years, 5 months ago (2011-05-31 04:28:03 UTC) #1
MarkM
15 years, 5 months ago (2011-05-31 04:28:33 UTC) #2
kpreid2
I see nothing wrong code-style-wise, or possibly affecting my work, with this but I am ...
15 years, 5 months ago (2011-05-31 18:15:40 UTC) #3
ihab.awad
lgtm++ http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5shim.js File src/com/google/caja/ses/es5shim.js (right): http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5shim.js#newcode21 src/com/google/caja/ses/es5shim.js:21: * >secureable ES5</a>. Add comment noting what you ...
15 years, 5 months ago (2011-06-02 04:42:25 UTC) #4
MarkM
15 years, 5 months ago (2011-06-05 17:38:18 UTC) #5
http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5sh...
File src/com/google/caja/ses/es5shim.js (right):

http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5sh...
src/com/google/caja/ses/es5shim.js:21: * >secureable ES5</a>.
On 2011/06/02 04:42:26, ihab.awad wrote:
> Add comment noting what you said verbally, that you intend this to be useable
> outside Caja as a transparent way to "repair" an almost-ES5 platform.

Done.

http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5sh...
src/com/google/caja/ses/es5shim.js:67: * this platform.
On 2011/06/02 04:42:26, ihab.awad wrote:
> Isn't this TODO already to-done by the test_* function below?

Done.

http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5sh...
src/com/google/caja/ses/es5shim.js:80: //var TOLERATE_MISSING_CALLEE_DESCRIPTOR
= false;
On 2011/06/02 04:42:26, ihab.awad wrote:
> Why not just delete these commented-out lines now?

Done.

http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5sh...
src/com/google/caja/ses/es5shim.js:299: * TODO(erights): isolate and report the
V8 bug mentioned below.
On 2011/06/02 04:42:26, ihab.awad wrote:
> I wasn't sure what the V8 bug actually is ... no reference to bug. :)

Done.

http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5sh...
src/com/google/caja/ses/es5shim.js:310: * Work arond for
https://bugzilla.mozilla.org/show_bug.cgi?id=637994
On 2011/06/02 04:42:26, ihab.awad wrote:
> ... around ...

Done.

http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5sh...
src/com/google/caja/ses/es5shim.js:328: * <p>A little known fast about
JavaScript is that
On 2011/06/02 04:42:26, ihab.awad wrote:
> ... fact ...

Done.

http://codereview.appspot.com/4547070/diff/6003/src/com/google/caja/ses/es5sh...
src/com/google/caja/ses/es5shim.js:598: return defProp(base, name, fullDesc);
On 2011/06/02 04:42:26, ihab.awad wrote:
> I'm a bit confused that dummySetter never calls 'desc.set()'.

Because we only install the dummySetter if fullDesc.set === undefined. This
should only be true if desc.set is absent or undefined. If desc.set contains a
setter, then we use that one.
Sign in to reply to this message.

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