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

Issue 8341021: Fix Error.prototype.toString to be ES5 conform. (Closed)

Created:
9 years, 2 months ago by Michael Starzinger
Modified:
9 years, 1 month ago
CC:
v8-dev
Visibility:
Public.

Description

Fix Error.prototype.toString to be ES5 conform. R=lrn@chromium.org TEST=test262/15.11.4.4-8-1,mjsunit/error-tostring Committed: http://code.google.com/p/v8/source/detail?r=9790

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed comments by Lasse Reichstein. #

Total comments: 6

Patch Set 3 : Addressed comments by Lasse Reichstein. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -64 lines) Patch
M src/messages.js View 1 3 chunks +15 lines, -14 lines 0 comments Download
M src/mirror-debugger.js View 1 chunk +1 line, -1 line 0 comments Download
D test/mjsunit/cyclic-error-to-string.js View 1 1 chunk +0 lines, -46 lines 0 comments Download
A test/mjsunit/error-tostring.js View 1 2 1 chunk +85 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Michael Starzinger
The updated test expectations in cyclic-error-to-string.js are in line with the current Firefox stable. Unfortunately ...
9 years, 2 months ago (2011-10-25 16:27:36 UTC) #1
Erik Corry
Is there a bug filed against JSC?
9 years, 2 months ago (2011-10-25 19:22:29 UTC) #2
Lasse Reichstein
LGTM http://codereview.chromium.org/8341021/diff/1/src/messages.js File src/messages.js (right): http://codereview.chromium.org/8341021/diff/1/src/messages.js#newcode1157 src/messages.js:1157: var type = error.type; The spec doesn't say ...
9 years, 2 months ago (2011-10-26 07:40:24 UTC) #3
Lasse Reichstein
http://codereview.chromium.org/8341021/diff/1/test/mjsunit/cyclic-error-to-string.js File test/mjsunit/cyclic-error-to-string.js (right): http://codereview.chromium.org/8341021/diff/1/test/mjsunit/cyclic-error-to-string.js#newcode30 test/mjsunit/cyclic-error-to-string.js:30: So we have a test of Error.toString that tests ...
9 years, 2 months ago (2011-10-26 08:50:44 UTC) #4
Michael Starzinger
On 2011/10/25 19:22:29, Erik Corry wrote: > Is there a bug filed against JSC? Now ...
9 years, 2 months ago (2011-10-26 09:07:40 UTC) #5
Michael Starzinger
Added new patch set. PTAQL. http://codereview.chromium.org/8341021/diff/1/src/messages.js File src/messages.js (right): http://codereview.chromium.org/8341021/diff/1/src/messages.js#newcode1157 src/messages.js:1157: var type = error.type; ...
9 years, 2 months ago (2011-10-26 09:30:20 UTC) #6
Lasse Reichstein
LGTM! http://codereview.chromium.org/8341021/diff/2002/src/messages.js File src/messages.js (right): http://codereview.chromium.org/8341021/diff/2002/src/messages.js#newcode1165 src/messages.js:1165: message = IS_UNDEFINED(message) ? "" : TO_STRING_INLINE(message); Nano-optimization ...
9 years, 1 month ago (2011-10-26 10:28:36 UTC) #7
Michael Starzinger
9 years, 1 month ago (2011-10-26 10:42:50 UTC) #8
Added new patch set. Landed.

http://codereview.chromium.org/8341021/diff/2002/test/mjsunit/error-tostring.js
File test/mjsunit/error-tostring.js (right):

http://codereview.chromium.org/8341021/diff/2002/test/mjsunit/error-tostring....
test/mjsunit/error-tostring.js:29: // Test default String representation of an
Error object.
On 2011/10/26 10:28:36, Lasse Reichstein wrote:
> Lower case "string", otherwise it seems like it's an object.

Done.

http://codereview.chromium.org/8341021/diff/2002/test/mjsunit/error-tostring....
test/mjsunit/error-tostring.js:56: // on a given Error object.  Verify the
produced String representation.
On 2011/10/26 10:28:36, Lasse Reichstein wrote:
> Lower case "string" here too.

Done.

Powered by Google App Engine
This is Rietveld 408576698