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

Issue 9949054: Basic support for reading and writing JSON objects. (Closed)

Created:
8 years, 8 months ago by hausner
Modified:
8 years, 8 months ago
Reviewers:
turnidge
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Basic support for reading and writing JSON objects. This is a minimal implementation that we can grow as needed for debugger protocols and isolate communication. Committed: https://code.google.com/p/dart/source/detail?r=6362

Patch Set 1 #

Patch Set 2 : #

Total comments: 36

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+587 lines, -0 lines) Patch
A runtime/vm/json.h View 1 2 1 chunk +119 lines, -0 lines 0 comments Download
A runtime/vm/json.cc View 1 2 1 chunk +346 lines, -0 lines 2 comments Download
A runtime/vm/json_test.cc View 1 2 1 chunk +119 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
hausner
8 years, 8 months ago (2012-04-06 17:01:49 UTC) #1
turnidge
http://codereview.chromium.org/9949054/diff/2002/runtime/vm/json.cc File runtime/vm/json.cc (right): http://codereview.chromium.org/9949054/diff/2002/runtime/vm/json.cc#newcode11 runtime/vm/json.cc:11: namespace dart { The classes in the header go ...
8 years, 8 months ago (2012-04-09 22:26:42 UTC) #2
hausner
Thanks for the review. http://codereview.chromium.org/9949054/diff/2002/runtime/vm/json.cc File runtime/vm/json.cc (right): http://codereview.chromium.org/9949054/diff/2002/runtime/vm/json.cc#newcode11 runtime/vm/json.cc:11: namespace dart { I typically ...
8 years, 8 months ago (2012-04-10 16:26:51 UTC) #3
turnidge
8 years, 8 months ago (2012-04-11 17:06:45 UTC) #4
lgtm with 2 comments.

http://codereview.chromium.org/9949054/diff/7001/runtime/vm/json.cc
File runtime/vm/json.cc (right):

http://codereview.chromium.org/9949054/diff/7001/runtime/vm/json.cc#newcode45
runtime/vm/json.cc:45: while ((literal[i] != '\0') && (current_pos_[i] ==
literal[i])) {
What if current_pos_[i] == '\0'?  Might access beyond the end of the string. 
Please add a test for this case.

http://codereview.chromium.org/9949054/diff/7001/runtime/vm/json.cc#newcode61
runtime/vm/json.cc:61: while ((i < token_length_) && (token_start_[i] ==
literal[i])) {
What if literal is shorter than the current token?  You might access beyond the
end of the string.  Please add a test for this case.

Powered by Google App Engine
This is Rietveld 408576698