json inf parsing

This commit is contained in:
Derek Bailey
2022-04-22 12:22:46 -07:00
parent d34dc32c20
commit c86e6d0e30

View File

@@ -3052,7 +3052,8 @@ CheckedError Parser::SkipAnyJsonValue() {
case kTokenIntegerConstant:
case kTokenFloatConstant: NEXT(); break;
default:
if (IsIdent("true") || IsIdent("false") || IsIdent("null")) {
if (IsIdent("true") || IsIdent("false") || IsIdent("null") ||
IsIdent("inf")) {
NEXT();
} else
return TokenError();