File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 855855 (map #(cljs.analyzer/no-warn (cljs.analyzer/analyze &env %)) forms))
856856 (core/let [and-str (core/->> (repeat (count forms) " (~{})" )
857857 (interpose " && " )
858+ (#(concat [" (" ] % [" )" ]))
858859 (apply core/str))]
859860 (bool-expr `(~'js* ~and-str ~@forms)))
860861 `(let [and# ~x]
873874 (map #(cljs.analyzer/no-warn (cljs.analyzer/analyze &env %)) forms))
874875 (core/let [or-str (core/->> (repeat (count forms) " (~{})" )
875876 (interpose " || " )
877+ (#(concat [" (" ] % [" )" ]))
876878 (apply core/str))]
877879 (bool-expr `(~'js* ~or-str ~@forms)))
878880 `(let [or# ~x]
Original file line number Diff line number Diff line change 15251525(deftest test-cljs-2552
15261526 (is (boolean? (tap> nil ))))
15271527
1528+ ; ; Delete a bogus property from the beta? fn
1529+ ; ; Without the fix this js-delete form code-gens to code that deletes the alpha? fn:
1530+ ; ; delete (cljs.core_test.alpha_2585_QMARK_) && (cljs.core_test.beta_2585_QMARK_)["bogus-property"]
1531+ (defn ^boolean alpha-2585? [] true )
1532+ (defn ^boolean beta-2585? [] true )
1533+ (js-delete (and alpha-2585? beta-2585?) " bogus-property" )
1534+
1535+ (deftest test-cljs-2585
1536+ (is (= true ((or int? string?) 1 )))
1537+ ; ; Make sure we didn't delete the alpha? fn
1538+ (is (some? alpha-2585?)))
1539+
15281540(comment
15291541 ; ; ObjMap
15301542 ; ; (let [ks (map (partial str "foo") (range 500))
You can’t perform that action at this time.
0 commit comments