Skip to content

Commit e312063

Browse files
committed
examples/lein: add issue52 repro
1 parent 346ab47 commit e312063

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

examples/lein/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ pom.xml
1818
.nrepl-port
1919
/.dirac-chrome-profile/
2020
/.figwheel/
21-
.rebel_readline_history
21+
.rebel_readline_history
22+
.test-dirac-chrome-profile
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
(ns devtools-sample.tests.issue52
2+
(:require-macros [devtools-sample.logging :refer [log info]])
3+
(:require [devtools-sample.boot :refer [boot!]]
4+
[goog.dom :as gdom]
5+
[goog.string :as gstr]))
6+
7+
(boot! "/src/tests/devtools_sample/tests/issue52.cljs")
8+
9+
(enable-console-print!)
10+
11+
; --- MEAT STARTS HERE -->
12+
(def v {:a (fn [])
13+
:b (fn [p__gen p123])
14+
:c #(str %)
15+
:d (js* "function(x) { console.log(x); }")})
16+
17+
(js/console.log v)
18+
19+
(defn trigger-me []
20+
(let [v1 v])
21+
(js-debugger))
22+
23+
(def button-node
24+
(gdom/constHtmlToNode (.from gstr/Const "<button onclick='devtools_sample.tests.issue52.trigger_me()'>Trigger me!</button>")))
25+
26+
(gdom/insertChildAt js/document.body button-node 0)
27+
28+
; <-- MEAT STOPS HERE ---

0 commit comments

Comments
 (0)