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

Issue 5676005: Fix regression in JSON serialization of RegExps. (Closed)

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

Description

Fix regression in JSON serialization of RegExps. Tweaks to the serialization.

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments. #

Total comments: 2

Patch Set 3 : Added test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -135 lines) Patch
M src/date.js View 1 1 chunk +12 lines, -4 lines 0 comments Download
M src/json.js View 1 3 chunks +47 lines, -50 lines 0 comments Download
M src/messages.js View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/string.js View 2 chunks +1 line, -7 lines 0 comments Download
M src/v8natives.js View 3 chunks +2 lines, -22 lines 0 comments Download
M test/mjsunit/json.js View 1 2 7 chunks +114 lines, -51 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
10 years ago (2010-12-14 14:01:58 UTC) #1
Rico
http://codereview.chromium.org/5676005/diff/1/src/date.js File src/date.js (right): http://codereview.chromium.org/5676005/diff/1/src/date.js#newcode989 src/date.js:989: ':' + PadInt(this.getUTCMinutes(), 2) + ':' + PadInt(this.getUTCSeconds(), 2) ...
10 years ago (2010-12-15 07:46:10 UTC) #2
Lasse Reichstein
Please re^2view Date toJSON. http://codereview.chromium.org/5676005/diff/1/src/date.js File src/date.js (right): http://codereview.chromium.org/5676005/diff/1/src/date.js#newcode989 src/date.js:989: ':' + PadInt(this.getUTCMinutes(), 2) + ...
10 years ago (2010-12-15 08:59:54 UTC) #3
Rico
LGTM with test added. I guess the test should succeed because calling the method will ...
10 years ago (2010-12-15 09:17:04 UTC) #4
Lasse Reichstein
10 years ago (2010-12-15 09:29:40 UTC) #5
http://codereview.chromium.org/5676005/diff/6001/test/mjsunit/json.js
File test/mjsunit/json.js (right):

http://codereview.chromium.org/5676005/diff/6001/test/mjsunit/json.js#newcode81
test/mjsunit/json.js:81: 
Added test:

var d7 = {toJSON: Date.prototype.toJSON,
          ISOString: "not callable"};
assertThrows("d7.toJSON()", TypeError);

Powered by Google App Engine
This is Rietveld 408576698