We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
((not empty?) "foo")
1 parent cbb4896 commit 9923fadCopy full SHA for 9923fad
2 files changed
src/main/clojure/cljs/compiler.cljc
@@ -1157,7 +1157,7 @@
1157
(emit-wrap env
1158
(cond
1159
opt-not?
1160
- (emits "!(" (first args) ")")
+ (emits "(!(" (first args) "))")
1161
1162
proto?
1163
(let [pimpl (str (munge (protocol-prefix protocol))
src/test/cljs/cljs/core_test.cljs
@@ -1619,3 +1619,9 @@
1619
(= 1
1620
(let [a #js {:b 1}]
1621
((fn [] a.b))))))
1622
+
1623
+(deftest test-cljs-2832
1624
+ (is (true? ((comp not empty?) "foo")))
1625
+ (is (false? ((comp not empty?) "")))
1626
+ (is (thrown? js/Error ((not empty?) "foo")))
1627
+ (is (thrown? js/Error ((not empty?) ""))))
0 commit comments