cljs.repl/print-mapped-stacktrace
function | since v0.0-2814 | Edit |
(print-mapped-stacktrace stacktrace)
(print-mapped-stacktrace stacktrace opts)
Source docstring:
Given a vector representing the canonicalized JavaScript stacktrace
print the ClojureScript stacktrace. See mapped-stacktrace.
(defn print-mapped-stacktrace
([stacktrace] (print-mapped-stacktrace stacktrace *repl-opts*))
([stacktrace opts]
(doseq [{:keys [function file line column]}
(mapped-stacktrace stacktrace opts)]
(err-out
(println "\t"
(str (when function (str function " "))
"(" (file-display file opts) (when line (str ":" line)) (when column (str ":" column)) ")"))))))