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

Issue 9181003: Fix to the JsonStringifier in dart_json.dart to escape eols. The error messages that frog sends t... (Closed)

Created:
8 years, 11 months ago by devoncarew
Modified:
8 years, 11 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix to the JsonStringifier in dart_json.dart to escape eols. The error messages that frog sends to the editor can contains eols, which is causing issues (http://code.google.com/p/dart/issues/detail?id=1064). Committed: https://code.google.com/p/dart/source/detail?r=3256

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -4 lines) Patch
M client/json/dart_json.dart View 1 2 3 chunks +11 lines, -2 lines 0 comments Download
M client/tests/client/json/json_tests.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M frog/server/dart_json.dart View 1 2 3 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jennifer Messerly
lgtm
8 years, 11 months ago (2012-01-11 01:12:19 UTC) #1
Anton Muhin
DBQ: May we have tests for this new functionality?
8 years, 11 months ago (2012-01-11 14:33:00 UTC) #2
devoncarew
On 2012/01/11 14:33:00, antonmuhin wrote: > DBQ: May we have tests for this new functionality? ...
8 years, 11 months ago (2012-01-11 21:29:19 UTC) #3
Jennifer Messerly
On 2012/01/11 21:29:19, devoncarew wrote: > On 2012/01/11 14:33:00, antonmuhin wrote: > > DBQ: May ...
8 years, 11 months ago (2012-01-11 21:34:47 UTC) #4
devoncarew
@Anton, let me know if you'd like me to commit this as it w/o the ...
8 years, 11 months ago (2012-01-11 22:18:49 UTC) #5
Anton Muhin
Devon, thanks a lot for adding a test! As John says, dartium tests need some ...
8 years, 11 months ago (2012-01-12 13:22:59 UTC) #6
devoncarew
8 years, 11 months ago (2012-01-12 21:28:11 UTC) #7
http://codereview.chromium.org/9181003/diff/3002/client/json/dart_json.dart
File client/json/dart_json.dart (right):

http://codereview.chromium.org/9181003/diff/3002/client/json/dart_json.dart#n...
client/json/dart_json.dart:514: charCode = 110; // 'n'
On 2012/01/12 13:23:00, antonmuhin wrote:
> as an option see A_SMALL above.  Ditto for r

Done.

http://codereview.chromium.org/9181003/diff/3002/client/tests/client/json/jso...
File client/tests/client/json/json_tests.dart (right):

http://codereview.chromium.org/9181003/diff/3002/client/tests/client/json/jso...
client/tests/client/json/json_tests.dart:81:
expect(JSON.stringify('hi\nthere')).equals('"hi\\nthere"');
On 2012/01/12 13:23:00, antonmuhin wrote:
> may I ask you to add a test for \r as well?

Done.

Powered by Google App Engine
This is Rietveld 408576698