This commit is contained in:
Abhishek Sharma 2017-12-07 06:31:19 +00:00 committed by GitHub
commit 17ae5b1cd2

View File

@ -649,10 +649,7 @@ function parser(tokens) {
// So we create a `while` loop that will continue until it encounters a
// token with a `type` of `'paren'` and a `value` of a closing
// parenthesis.
while (
(token.type !== 'paren') ||
(token.type === 'paren' && token.value !== ')')
) {
while (token.value !== ')') {
// we'll call the `walk` function which will return a `node` and we'll
// push it into our `node.params`.
node.params.push(walk());