Skip to content

Commit dc4886a

Browse files
committed
[JS] Adds a todo re a potential infinite loop in the parser
1 parent ee81fac commit dc4886a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rosetta-test-js/parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function parseTokens(tokens) {
3232
if (token === '(') {
3333
const list = [];
3434
while (tokens[0] !== ')') {
35+
// TODO: This seems to lead to infinite loops if input ends
3536
list.push(parseTokens(tokens));
3637
}
3738
tokens.shift();

0 commit comments

Comments
 (0)