Skip to content

Commit d7db622

Browse files
mfikesdnolen
authored andcommitted
CLJS-1372: cljs.stacktrace: Unconditional File reference in :nashorn section
Employ same handling as done for :rhino
1 parent c499b2a commit d7db622

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/cljs/cljs/stacktrace.cljc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,9 @@ goog.events.getProxy/f<@http://localhost:9000/out/goog/events/events.js:276:16"
411411
[function file-and-line] (string/split frame-str #"\s+")
412412
[file-part line-part] (string/split file-and-line #":")]
413413
{:file (string/replace (.substring file-part 1)
414-
(str output-dir File/separator) "")
414+
(str output-dir
415+
#?(:clj File/separator :cljs "/"))
416+
"")
415417
:function function
416418
:line (when (and line-part (not (string/blank? line-part)))
417419
(parse-int

0 commit comments

Comments
 (0)