Skip to content

Commit 800ac4d

Browse files
committed
apodict: dead code.
1 parent 6995122 commit 800ac4d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/core/jsonc/parser.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,7 @@ const jsoncParser = options => {
436436
}
437437
index += value.length;
438438
break;
439-
case 'key1':
440-
case 'key': {
439+
case 'key1': {
441440
index = consumeTrivia(tokens, index);
442441
if (triviaWait) break main; // wait for more input (incomplete comment)
443442
if (index >= buffer.length) {
@@ -511,7 +510,6 @@ const jsoncParser = options => {
511510
continue main;
512511
}
513512
if (cc === ASCII_CLOSE_BRACE) {
514-
if (expect !== 'key1') throw new Error("Parser cannot parse input: unexpected token '}'");
515513
tokens.push(tokenEndObject);
516514
parent = stack.pop();
517515
expect = expected[parent];

0 commit comments

Comments
 (0)