Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Issue 7811015: Change global const handling to silently ignore redeclarations (Closed)

Created:
9 years, 3 months ago by Jakob Kummerow
Modified:
9 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Change global const handling to silently ignore redeclarations and make window.{Infinity,NaN,undefined} read-only as per ES5 BUG=89490 TEST=mjsunit/const-redecl.js, mjsunit/undeletable-functions.js, es5conform, sputnik Committed: http://code.google.com/p/v8/source/detail?r=9299

Patch Set 1 #

Total comments: 14

Patch Set 2 : addressed comments #

Total comments: 6

Patch Set 3 : addressed comments #

Patch Set 4 : fix assertion failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -170 lines) Patch
M src/runtime.cc View 1 2 3 5 chunks +34 lines, -124 lines 0 comments Download
M src/v8natives.js View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M test/cctest/test-decls.cc View 1 2 3 7 chunks +21 lines, -19 lines 0 comments Download
M test/es5conform/es5conform.status View 1 1 chunk +0 lines, -10 lines 0 comments Download
M test/mjsunit/const-redecl.js View 1 2 chunks +61 lines, -1 line 0 comments Download
M test/mjsunit/global-const-var-conflicts.js View 1 2 chunks +5 lines, -5 lines 0 comments Download
M test/mjsunit/regress/regress-1170.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-1213575.js View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download
M test/mjsunit/undeletable-functions.js View 2 chunks +3 lines, -1 line 0 comments Download
M test/sputnik/sputnik.status View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jakob Kummerow
PTAL.
9 years, 3 months ago (2011-08-31 09:25:10 UTC) #1
Kevin Millikin (Chromium)
It's not your code, but the existing code is kind of convoluted. I've highlighted some ...
9 years, 3 months ago (2011-09-08 12:06:02 UTC) #2
Jakob Kummerow
Thanks for the feedback. Please take another look. http://codereview.chromium.org/7811015/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/7811015/diff/1/src/runtime.cc#newcode1187 src/runtime.cc:1187: PropertyAttributes ...
9 years, 3 months ago (2011-09-09 15:42:43 UTC) #3
Kevin Millikin (Chromium)
OK, LGTM. I have a few comments on the comments that you might incorporate. http://codereview.chromium.org/7811015/diff/5001/src/runtime.cc ...
9 years, 3 months ago (2011-09-13 11:09:15 UTC) #4
Erik Corry
What does Safari do?
9 years, 3 months ago (2011-09-13 11:24:36 UTC) #5
Jakob Kummerow
On 2011/09/13 11:24:36, Erik Corry wrote: > What does Safari do? You're stirring a hornets' ...
9 years, 3 months ago (2011-09-13 12:28:25 UTC) #6
Jakob Kummerow
Comments addressed, landing. http://codereview.chromium.org/7811015/diff/5001/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/7811015/diff/5001/src/runtime.cc#newcode1395 src/runtime.cc:1395: JSObject* real_holder = JSObject::cast(object); On 2011/09/13 ...
9 years, 3 months ago (2011-09-13 13:21:37 UTC) #7
Jakob Kummerow
On 2011/09/13 13:21:37, Jakob wrote: > Comments addressed, landing. Cancel that, found an assertion failure. ...
9 years, 3 months ago (2011-09-14 15:26:07 UTC) #8
Kevin Millikin (Chromium)
9 years, 3 months ago (2011-09-15 11:47:51 UTC) #9
LGTM.

Powered by Google App Engine
This is Rietveld 408576698