diff options
Diffstat (limited to 'decode.go')
-rw-r--r-- | decode.go | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -104,12 +104,10 @@ const maxNestingDepth = 10000 // an io.Reader. func NewDecoder(r io.RuneScanner) *Decoder { return &Decoder{ - io: &noWSRuneTypeScanner{ - inner: &runeTypeScannerImpl{ - inner: r, - parser: internal.Parser{ - MaxDepth: maxNestingDepth, - }, + io: &runeTypeScannerImpl{ + inner: r, + parser: internal.Parser{ + MaxDepth: maxNestingDepth, }, }, } |