This commit is contained in:
Looly
2022-06-16 12:10:56 +08:00
parent 4c7ac0042c
commit 60dd7ce563
5 changed files with 23 additions and 2 deletions

View File

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