Yes it is possible. This is what the cljs.source-map namespace for. You
could take the JavaScript exception and remap it using the existing
functionality then log it. Note that source maps for advanced compilation
artifacts is lossy due to inlining and dead code elimination. Still better
than nothing.

David

On Fri, Feb 13, 2015 at 2:35 AM, Denis Johnson <[email protected]>
wrote:

> Given the js stack via (.-stack error) where error is passed into handler
> setup as (set! js/window.onerror global-error-handler) is anyone aware of
> library that can convert the stack elements to cljs file/function line
> numbers given source and source maps ? Clearly google devtools and the like
> do that, but I'd like to do this in our own code somewhere and post result
> to a logging service.
> Obviously this requires access to source and source maps so might be best
> handled via a service on our own host. Also note this would need to work
> when cljsbuild compiler :optimisations :advanced
>
> Appreciate any pointers or insights.
>
> Denis
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to