Skip to content

set error on ex-info for better broswer support #107

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

Conversation

timothypratley
Copy link
Contributor

See discussion https://ask.clojure.org/index.php/11159/suggestion-to-improve-default-info-printing-clojurescript

To observe the behavior, try throwing these two expressions:

(throw (ex-info "oh no" {}))

(throw (set! (.-error (ex-info "oh no" {})) "oh no"))

And observe that the second form is more browser friendly.

See discussion https://ask.clojure.org/index.php/11159/suggestion-to-improve-default-info-printing-clojurescript

To observe the behavior, try throwing these two expressions:

    (throw (ex-info "oh no" {}))

    (throw (set! (.-error (ex-info "oh no" {})) "oh no"))

And observe that the second form is more browser friendly.
@timothypratley
Copy link
Contributor Author

Seems to be that the current behavior is intentional

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

Successfully merging this pull request may close these issues.

1 participant