mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Tolerate trailing comma in JSON array
Previously we'd fail to extract some tsconfig.json files because of this.
This commit is contained in:
@@ -205,9 +205,6 @@ public class JSONParser {
|
||||
char c = peek();
|
||||
switch (c) {
|
||||
case ']':
|
||||
if (!needsComma) {
|
||||
raise("Omitted elements are not allowed in JSON.");
|
||||
}
|
||||
next();
|
||||
break out;
|
||||
case ',':
|
||||
|
||||
Reference in New Issue
Block a user