Skip to content

Commit 9b0281f

Browse files
author
dnolen
committed
drop eval frames from Chrome
1 parent 167d098 commit 9b0281f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/clj/cljs/repl/browser.clj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@
266266
(->> st
267267
string/split-lines
268268
(drop 1) ;; drop the error message
269+
(take-while #(not (.startsWith % "\tat eval")))
269270
(map #(chrome-st-el->frame % opts))
270271
(remove nil?)
271272
vec))
@@ -284,6 +285,20 @@
284285
\tat Object.cljs$core$pr_sequential_writer [as pr_sequential_writer] (http://localhost:9000/out/cljs/core.js:28706:14)"
285286
{:ua-product :chrome}
286287
nil)
288+
289+
(parse-stacktrace nil
290+
"at Object.cljs$core$seq [as seq] (http://localhost:9000/out/cljs/core.js:4259:8)
291+
\tat Object.cljs$core$first [as first] (http://localhost:9000/out/cljs/core.js:4289:19)
292+
\tat cljs$core$ffirst (http://localhost:9000/out/cljs/core.js:5357:18)
293+
\tat eval (eval at <anonymous> (http://localhost:9000/out/clojure/browser/repl.js:23:272), <anonymous>:1:106)
294+
\tat eval (eval at <anonymous> (http://localhost:9000/out/clojure/browser/repl.js:23:272), <anonymous>:9:3)
295+
\tat eval (eval at <anonymous> (http://localhost:9000/out/clojure/browser/repl.js:23:272), <anonymous>:14:4)
296+
\tat http://localhost:9000/out/clojure/browser/repl.js:23:267
297+
\tat clojure$browser$repl$evaluate_javascript (http://localhost:9000/out/clojure/browser/repl.js:26:4)
298+
\tat Object.callback (http://localhost:9000/out/clojure/browser/repl.js:121:169)
299+
\tat goog.messaging.AbstractChannel.deliver (http://localhost:9000/out/goog/messaging/abstractchannel.js:142:13)"
300+
{:ua-product :chrome}
301+
nil)
287302
)
288303

289304
;; -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)