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 1fa4db4 commit ef5eafbCopy full SHA for ef5eafb
src/main/clojure/cljs/compiler.cljc
@@ -1013,12 +1013,15 @@
1013
")"))))
1014
1015
(defmethod emit* :js
1016
- [{:keys [env code segs args]}]
1017
- (emit-wrap env
1018
- (if code
1019
- (emits code)
1020
- (emits (interleave (concat segs (repeat nil))
1021
- (concat args [nil]))))))
+ [{:keys [op env code segs args]}]
+ (if (and code (= op :js) #?(:clj (.startsWith ^String code "/*")
+ :cljs (gstring/startsWith code "/*")))
+ (emits code)
+ (emit-wrap env
+ (if code
1022
1023
+ (emits (interleave (concat segs (repeat nil))
1024
+ (concat args [nil])))))))
1025
1026
;; TODO: unify renaming helpers - this one was hard to find - David
1027
0 commit comments