We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b29265c commit 1517c76Copy full SHA for 1517c76
src/cider/nrepl/middleware/macroexpand.clj
@@ -200,11 +200,12 @@
200
in the context of the given :ns, using the provided :expander.
201
and :display-namespaces options."
202
[{:keys [code expander ns] :as msg}]
203
- (->> (let [expander-fn (resolve-expander-cljs msg)]
204
- (cljs/with-cljs-env msg
205
- (cljs/with-cljs-ns ns
206
- (expander-fn (reader/read-string code)))))
207
- (walk/prewalk (post-expansion-walker-cljs msg))))
+ (let [expander-fn (resolve-expander-cljs msg)
+ code (reader/read-string code)]
+ (walk/prewalk (post-expansion-walker-cljs msg)
+ (cljs/with-cljs-env msg
+ (cljs/with-cljs-ns ns
208
+ (expander-fn code))))))
209
210
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
211
0 commit comments