-
Notifications
You must be signed in to change notification settings - Fork 7
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
[question] why this is only related to vue? #5
Comments
@k1r0s Thank you! I fixed title. The description left after another library. Since the first idea was to create a decorator for Vue using |
Why you depend on
|
It doens't work with static methods on ES6 classes
|
@k1r0s My mistake, I'll remove this dependencies (as I wrote, this are traces left from the previous lib). |
I came across this repo bcoz you own https://www.npmjs.com/package/catch-decorator :))) and I have suggestions regarding on this repo |
I can provide something that works everywhere and can be stacked: @Throws(SyntaxError, "your expression is malformed")
@Throws(TypeError, "another message")
method() {
asds() // bcoz this is a ReferenceError, exception isn't catched
} and @Throws(SyntaxError, "your expression is malformed")
@Throws(TypeError, "another message")
method() {
mm1mm1m1,,1 // SyntaxError is throwed so its handled and "your expression is malformed" is returned
} |
But I would like to publish under |
@k1r0s Good idea :) Feel free to open pull request with your description. There are many more nuances that can be implemented. |
good luck |
why this appears to work only in vue rather than every ES6 class?
The text was updated successfully, but these errors were encountered: