@leobm Unfortunately this-as isn't available in scittle, but you can do it like this:
(defn Foo [z]
(let [obj #js {:x 1
:y 2
:z z}]
(set! (.-test obj) (fn [] (.-z obj)))
obj))
(prn (-> (Foo 1) (.test)))