Commit 8a9a8ab2 authored by Kamal Marhubi's avatar Kamal Marhubi

Change TODO on trailing comma to 'someday'

parent c0d00748
...@@ -422,7 +422,7 @@ public: ...@@ -422,7 +422,7 @@ public:
values.add(kj::mv(orphan)); values.add(kj::mv(orphan));
if (consumeWhitespace(), nextChar() != ']') { if (consumeWhitespace(), nextChar() != ']') {
// TODO(soon): This incorrectly allows a trailing comma. // TODO(someday): The JSON spec forbids a trailing comma, but we allow it.
consume(','); consume(',');
} }
} }
...@@ -458,7 +458,7 @@ public: ...@@ -458,7 +458,7 @@ public:
fields.add(kj::mv(orphan)); fields.add(kj::mv(orphan));
if (consumeWhitespace(), nextChar() != '}') { if (consumeWhitespace(), nextChar() != '}') {
// TODO(soon): This incorrectly allows a trailing comma. // TODO(someday): The JSON spec forbids a trailing comma, but we allow it.
consume(','); consume(',');
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment