-
Notifications
You must be signed in to change notification settings - Fork 422
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
can.map throws strings, not errors. #1773
Comments
👍 Throwing strings don't provide things like stack traces and other Error goodies that are useful. |
👍 But I'm wondering if this could be considered a breaking API change? |
Other instances I found:
|
I...don't think so? How would it break the API? |
It would not. We don't document these errors. |
Shouldn't it be |
@akagomez can you submit a pull request for this? Thanks! |
@justinbmeyer I'm submitting one shortly, with more than just this throwing an error instead of a new string. |
The PR: #1811 |
Fixes #1773, throw Error objects rather than strings.
Fixes #1773, throw Error objects rather than strings.
Currently:
Should be:
https://github.com/bitovi/canjs/blob/master/map/map.js#L495
/cc @imjoshdean
The text was updated successfully, but these errors were encountered: