Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return false when rule not found #31

Open
wants to merge 1 commit into
base: nodejs
Choose a base branch
from
Open

Conversation

vkz
Copy link

@vkz vkz commented Jul 13, 2015

@indutny throwing when rule not found appears to change semantics and
break things. No idea why and I can't give you a small enough case.
Returing false is what it used to do before. I assume failure to find a
rule is a legit way for match to fail and backtrack. Could you pls check it. Thx

Maybe some reporting is warranted here if only for debugging, like pushing 'Rule: ' + rule + ' not found' on some error stack to report in case backtracking fails.

@indutny throwing when rule not found appears to change semantics and
break things. No idea why and I can't give you a small enough case.
Returing false is what it used to do before. I assume failure to find a
rule is a legit way for match to fail and backtrack. Could you pls check it. Thx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant