add methods

This commit is contained in:
Looly
2022-06-16 13:36:07 +08:00
parent 8af2bd79f8
commit 7cf1b3758d
12 changed files with 101 additions and 16 deletions

View File

@@ -77,6 +77,8 @@ public class JSONParser {
case ';':
case ',':
if (tokener.nextClean() == '}') {
// issue#2380
// 尾后逗号Trailing CommasJSON中虽然不支持但是ECMAScript 2017支持此处做兼容。
return;
}
tokener.back();