There was an error while loading. Please reload this page.
1 parent 6995122 commit 800ac4dCopy full SHA for 800ac4d
1 file changed
src/core/jsonc/parser.js
@@ -436,8 +436,7 @@ const jsoncParser = options => {
436
}
437
index += value.length;
438
break;
439
- case 'key1':
440
- case 'key': {
+ case 'key1': {
441
index = consumeTrivia(tokens, index);
442
if (triviaWait) break main; // wait for more input (incomplete comment)
443
if (index >= buffer.length) {
@@ -511,7 +510,6 @@ const jsoncParser = options => {
511
510
continue main;
512
513
if (cc === ASCII_CLOSE_BRACE) {
514
- if (expect !== 'key1') throw new Error("Parser cannot parse input: unexpected token '}'");
515
tokens.push(tokenEndObject);
516
parent = stack.pop();
517
expect = expected[parent];
0 commit comments