Add support for .getWatches on atoms

This commit is contained in:
Michiel Borkent 2023-02-25 21:33:55 +01:00
parent cd9a87e75c
commit 187ee7da00
2 changed files with 6 additions and 1 deletions

View file

@ -158,7 +158,9 @@
{:methods [{:name "getResource"}
{:name "getResources"}
{:name "getResourceAsStream"}
{:name "getParent"}]}})
{:name "getParent"}]}
clojure.lang.ARef
{:methods [{:name "getWatches"}]}})
(def custom-map
(cond->

View file

@ -843,6 +843,9 @@ true")))
(deftest index-of-test
(is (= 1 (bb nil "(.indexOf (map inc [1 2 3]) 3)"))))
(deftest get-watches-test
(is (true? (bb nil "(map? (.getWatches (doto (atom nil) (add-watch :foo (fn [k r o n])))))" ))))
;;;; Scratch
(comment