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

try.html gives an error on the new predicate guards #30

Closed
AlexDikelsky opened this issue Oct 4, 2021 · 2 comments
Closed

try.html gives an error on the new predicate guards #30

AlexDikelsky opened this issue Oct 4, 2021 · 2 comments

Comments

@AlexDikelsky
Copy link
Contributor

If I try to run this code, I get the error message s is undefined.

@mlochbaum
Copy link
Owner

This is a runtime error because the predicate fails, indicating that it should go to the next body, but there are none left. Error formatting is failing here; I'll have to figure out why tomorrow morning.

@mlochbaum
Copy link
Owner

It actually failed to throw an error and returned undefined, which isn't a valid BQN value. I'd missed it because predicates made a previously unreachable part of the compiled JS reachable.

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

No branches or pull requests

2 participants