Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Stacktrace element handling for :output-dir w/o file/line/column
Description
If parsing stacktraces when :host and ort are supplied, elements that have no file/line/column are properly accommodated.
But, an attempt to process a similar stacktrace when :output-dir is being used, an error will be thrown. (This can occur when using :output-dir for embedded JavaScriptCore.)
If parsing stacktraces when
:host
andort
are supplied, elements that have no file/line/column are properly accommodated.For example:
https://github.com/clojure/clojurescript/blob/v1.7/src/main/cljs/cljs/stacktrace.cljc#L266
But, an attempt to process a similar stacktrace when
:output-dir
is being used, an error will be thrown. (This can occur when using:output-dir
for embedded JavaScriptCore.)Here is a simple repro:
(parse-stacktrace {} "cljs$core$seq@out/cljs/core.js:3999:17 cljs$core$first@out/core.js:4018:22 cljs$core$ffirst@out/cljs/core.js:5161:39 global code" {:ua-product :safari} {:output-dir "out"})