-
Notifications
You must be signed in to change notification settings - Fork 164
feat: add raise() function #2702
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
base: main
Are you sure you want to change the base?
Conversation
🐗 docs incoming UPD: Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- needs a CHANGELOG entry marked as a breaking change
- needs a test what happens if the user already defined a function like
fun raise(s: String) { throw 42 }
…nto B4ckSl4sh/added-raise()
ref, | ||
); | ||
} | ||
const resolved0 = resolved[0]!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arg
name: "raise", | ||
resolve: (_ctx, args, ref) => { | ||
if (args.length !== 1) { | ||
throwCompilationError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need a test for each new throw
Issue
Closes #2701.