Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(505)

Issue 4430043: code review 4430043: json: keep track of error offset in SyntaxError (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by bradfitz
Modified:
14 years ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

json: keep track of error offset in SyntaxError

Patch Set 1 #

Patch Set 2 : diff -r 0319b97d1ffd https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 0319b97d1ffd https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 4 : diff -r 0319b97d1ffd https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 7ef8675eeed9 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -10 lines) Patch
M src/pkg/json/decode_test.go View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/json/scanner.go View 1 2 3 5 chunks +11 lines, -5 lines 0 comments Download
M src/pkg/json/stream.go View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 6
bradfitz
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-04-15 04:41:43 UTC) #1
rsc
http://codereview.appspot.com/4430043/diff/4001/src/pkg/json/decode_test.go File src/pkg/json/decode_test.go (right): http://codereview.appspot.com/4430043/diff/4001/src/pkg/json/decode_test.go#newcode74 src/pkg/json/decode_test.go:74: {`{"X": "foo", "Y"}`, nil, nil, &SyntaxError{"invalid character '}' after ...
14 years ago (2011-04-15 05:03:49 UTC) #2
bradfitz
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years ago (2011-04-15 06:34:54 UTC) #3
bradfitz
All done. With checkValid also incrementing the test now fails without offset 17, as expected. ...
14 years ago (2011-04-15 06:37:19 UTC) #4
rsc
LGTM
14 years ago (2011-04-15 12:13:43 UTC) #5
bradfitz
14 years ago (2011-04-15 15:14:37 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=22beb9c71c9c ***

json: keep track of error offset in SyntaxError

R=rsc
CC=golang-dev
http://codereview.appspot.com/4430043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b