fix failing object case

This commit is contained in:
Christopher Dunn 2015-02-19 11:23:36 -06:00
parent eed193e151
commit c58e93b014

View File

@ -1160,6 +1160,7 @@ bool OurReader::readValue() {
}
break;
case tokenArraySeparator:
case tokenObjectEnd:
if (features_.allowDroppedNullPlaceholders_) {
// "Un-read" the current token and mark the current value as a null
// token.
@ -1169,8 +1170,7 @@ bool OurReader::readValue() {
currentValue().setOffsetStart(current_ - begin_ - 1);
currentValue().setOffsetLimit(current_ - begin_);
break;
}
// Else, fall through...
} // else, fall through ...
default:
currentValue().setOffsetStart(token.start_ - begin_);
currentValue().setOffsetLimit(token.end_ - begin_);