Add helper for converting ex-info to js/Error

Description

ex-info/ex-data/ex-message didn't get a lot of attention in CLJS community, still I find quiet often (js/Error. "Err"). I guess the main reason is that we cannot pass ex-info object back to JS world, clj->js doesn't work in this case. We can solve it by adding helper like ex->js which will convert ex-info backward to js/Error.

What do you think about such enhancement? I can add patch later if you would find it useful

Environment

None

Status

Assignee

Unassigned

Reporter

Artem Yarulin

Labels

Approval

None

Patch

None

Affects versions

1.9.76

Priority

Trivial
Configure