-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature Request] Add JS_ThrowError()
convenience function
#375
Comments
I guess it was skipped because it's a 2 liner? You can |
|
Yeah I realized midways writing the reply 😅 . A PR would be welcome! |
In fact, |
Not quite, that function doesn't throw plain |
It's a helper for doing the following steps: - Building an Error object - Attaching a formatted message - Throwing the object Fixes: #375
PR: #411 |
It's a helper for doing the following steps: - Building an Error object - Attaching a formatted message - Throwing the object Fixes: #375
It's a helper for doing the following steps: - Building an Error object - Attaching a formatted message - Throwing the object Fixes: #375
It's a helper for doing the following steps: - Building an Error object - Attaching a formatted message - Throwing the object Fixes: quickjs-ng/quickjs#375
There are convenience functions such as
JS_ThrowTypeError()
which create a newTypeError
using printf syntax, however there is no such function for a regularError
instance. Would it make sense to add that? Or is there some reason why it doesn't exist already?The text was updated successfully, but these errors were encountered: