CrossClj

1.10.339 docs

SourceDocs



RECENT
    VARS
    chrome-st-el->frame
    ends-with?
    firefox-clean-function
    firefox-st-el->frame
    mapped-frame
    mapped-line-column-call
    mapped-stacktrace
    mapped-stacktrace-str
    output-directory
    parse-file
    parse-file-line-column
    parse-int
    parse-stacktrace
    remove-ext
    safari-st-el->frame
    starts-with?
    string->regex

    « Index of all namespaces of this project

    (chrome-st-el->frame repl-env st-el opts)
    (ends-with? s0 s1)
    (firefox-clean-function f)
    (firefox-st-el->frame repl-env st-el opts)
    (mapped-frame {:keys [function file line column]} sms opts)
    Given opts and a canonicalized JavaScript stacktrace frame, return the
    ClojureScript frame.
    (mapped-line-column-call sms file line column)
    Given a cljs.source-map source map data structure map a generated line
    and column back to the original line, column, and function called.
    (mapped-stacktrace stacktrace sms)(mapped-stacktrace stacktrace sms opts)
    Given a vector representing the canonicalized JavaScript stacktrace
    return the ClojureScript stacktrace. The canonical stacktrace must be
    in the form:
    
     [{:file <string>
       :function <string>
       :line <integer>
       :column <integer>}*]
    
    :file must be a URL path (without protocol) relative to :output-dir or a
    identifier delimited by angle brackets. The returned mapped stacktrace will
    also contain :url entries to the original sources if it can be determined
    from the classpath.
    (mapped-stacktrace-str stacktrace sms)(mapped-stacktrace-str stacktrace sms opts)
    Given a vector representing the canonicalized JavaScript stacktrace and a map
    of library names to decoded source maps, print the ClojureScript stacktrace .
    See mapped-stacktrace.
    (output-directory opts)
    (parse-file {:keys [host host-port port], :as repl-env} file {:keys [asset-path], :as opts})
    Given a browser file url convert it into a relative path that can be used
    to locate the original source.
    (parse-file-line-column flc)
    multimethod
    Parse a JavaScript stacktrace string into a canonical data form. The
    arguments:
    
    repl-env - the repl environment, an optional map with :host and :port keys
               if the stacktrace includes url, not file references
    st       - the original stacktrace string to parse
    err      - an error map. :ua-product key defines the type of stacktrace parser
               to use, for example :chrome
    opts     - additional options. :output-dir maybe given in this argument if
               :host and :port do not apply, for example, a file path
    
    The canonical stacktrace representation can easily be mapped to a
    ClojureScript one see mapped-stacktrace and mapped-stacktrace-str
    (remove-ext file)
    (safari-st-el->frame repl-env st-el opts)
    (starts-with? s0 s1)
    (string->regex s)