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

Issue 7172011: Make name and message non-enumerable on Error object (this is a partial fix for issue 1215) (Closed)

Created:
9 years, 6 months ago by Rico
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Make name and message non-enumerable on Error object (this is a partial fix for issue 1215) Committed: http://code.google.com/p/v8/source/detail?r=8299

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -10 lines) Patch
M src/messages.js View 1 4 chunks +31 lines, -10 lines 0 comments Download
M test/mjsunit/error-constructors.js View 1 2 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Rico
9 years, 6 months ago (2011-06-15 12:01:31 UTC) #1
Mads Ager (chromium)
If we make name and message not enumerable, shouldn't we do that for the other ...
9 years, 6 months ago (2011-06-15 12:05:21 UTC) #2
Rico
Patch updated with all non-enumerable properties. We now follow safari and Firefox nightly (except that ...
9 years, 6 months ago (2011-06-15 12:36:02 UTC) #3
Mads Ager (chromium)
LGTM http://codereview.chromium.org/7172011/diff/4001/test/mjsunit/error-constructors.js File test/mjsunit/error-constructors.js (right): http://codereview.chromium.org/7172011/diff/4001/test/mjsunit/error-constructors.js#newcode80 test/mjsunit/error-constructors.js:80: for (var v in e) { Error objects ...
9 years, 6 months ago (2011-06-15 13:41:54 UTC) #4
Rico
9 years, 6 months ago (2011-06-15 13:54:33 UTC) #5
http://codereview.chromium.org/7172011/diff/4001/test/mjsunit/error-construct...
File test/mjsunit/error-constructors.js (right):

http://codereview.chromium.org/7172011/diff/4001/test/mjsunit/error-construct...
test/mjsunit/error-constructors.js:80: for (var v in e) {
On 2011/06/15 13:41:54, Mads Ager wrote:
> Error objects should have no enumerable properties at this point, right? So
you
> could even assertUnreachable unconditionally in the body. Maybe some of the
code
> above prevents that? In that case, move this up so you can do it?
Done, but I kept the assertions above (to guarantee that the properties are
actually there)

Powered by Google App Engine
This is Rietveld 408576698