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

Issue 97020045: Correct NUMERIC_PROPERTIES_INVISIBLE repair given accessor properties. (Closed)

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

Description

The repair previously used assignment, which could trigger setters. I overlooked this when writing the repair because I was thinking about the hazard of the second argument (specified properties) but not the first (existing prototype with properties). Now we use defineProperty, which is guaranteed not to touch the prototype. @r5682

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M src/com/google/caja/ses/repairES5.js View 3 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 2
kpreid_google
11 years, 10 months ago (2014-05-06 01:40:43 UTC) #1
MarkM
11 years, 10 months ago (2014-05-06 03:05:48 UTC) #2
LGTM
Sign in to reply to this message.

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