Skip to content

Commit 49229f5

Browse files
committed
print NO_FUNCTION if it cannot be determined
1 parent 8279fbd commit 49229f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/clj/cljs/repl.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@
291291
([stacktrace opts]
292292
(doseq [{:keys [function file line column]}
293293
(mapped-stacktrace stacktrace opts)]
294-
((:print opts) "\t" (str function " (" file ":" line ":" column ")")))))
294+
((:print opts) "\t"
295+
(str (or function "NO_FUNCTION")
296+
" (" file ":" line ":" column ")")))))
295297

296298
(comment
297299
(cljsc/build "samples/hello/src"

0 commit comments

Comments
 (0)