mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Prior to this commit, wuffs_aux::DecodeJson would almost always consume (optional) trailing filler, but in rare coincidences, it might not if a wuffs_base__suspension__short_write coroutine suspension was needed between the last token of the actual JSON value and the first token of the filler after that JSON value. This commit should change behavior only if the wuffs_aux::DecodeJson caller had opted into WUFFS_JSON__QUIRK_ALLOW_TRAILING_FILLER or WUFFS_JSON__QUIRK_EXPECT_TRAILING_NEW_LINE_OR_EOF. Also remove an unnecessary std::move on a size_t typed value.