File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 14
14
#? (:clj (:import [java.util.regex Pattern]
15
15
[java.io File])))
16
16
17
- (defmulti parse-stacktrace (fn [repl-env st err opts] (:ua-product err)))
17
+ (defmulti parse-stacktrace
18
+ " Parse a JavaScript stacktrace string into a canonical data form. The
19
+ arguments:
20
+
21
+ repl-env - the repl environment, an optional map with :host and :port keys
22
+ if the stacktrace includes url, not file references
23
+ st - the original stacktrace string to parse
24
+ err - an error map. :ua-product key defines the type of stacktrace parser
25
+ to use, for example :chrome
26
+ opts - additional options. :output-dir maybe given in this argument if
27
+ :host and :port do not apply, for example, a file path
28
+
29
+ The canonical stacktrace representation can easily be mapped to a
30
+ ClojureScript one see mapped-stacktrace and mapped-stacktrace-str"
31
+ (fn [repl-env st err opts] (:ua-product err)))
18
32
19
33
(defn parse-int [s]
20
34
#? (:clj (Long/parseLong s)
You can’t perform that action at this time.
0 commit comments