mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JS: Tolerate trailing comma in JSON objects
This commit is contained in:
@@ -152,9 +152,6 @@ public class JSONParser {
|
||||
char c = next();
|
||||
switch (c) {
|
||||
case '}':
|
||||
if (!needsComma) {
|
||||
raise("Trailing commas are not allowed in JSON.");
|
||||
}
|
||||
break out;
|
||||
case ',':
|
||||
if (!needsComma) {
|
||||
|
||||
Reference in New Issue
Block a user