]> Cypherpunks repositories - gostls13.git/commit
encoding/json: roll back Unmarshal optimization + test
authorRuss Cox <rsc@golang.org>
Thu, 14 Feb 2013 19:46:15 +0000 (14:46 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 14 Feb 2013 19:46:15 +0000 (14:46 -0500)
commitd340a89d9c872438841e9f3ff90e6baa6fa3d8ce
tree727638437cdcf2b0c42ca62a5127477883373cee
parentda6207f7a48a0e0bb961e0d80ca454ebd02180da
encoding/json: roll back Unmarshal optimization + test

The second attempt at the Unmarshal optimization allowed
panics to get out of the json package. Add test for that bug
and remove the optimization.

Let's stop trying to optimize Unmarshal.

Fixes #4784.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7300108
src/pkg/encoding/json/decode.go
src/pkg/encoding/json/decode_test.go