Welcome! Please see the About page for a little more info on how this works.
set! can take 3 arguments, as in {{(set o -prop val)}} per CLJS-198.
set!
The docstring could be updated to reflect this, perhaps by adding this to the list of forms near the top of the docstring:
(set! instance-expr -instanceFieldName-symbol expr)
Implementation guidance:
The docstring is driven by the forms meta here https://github.com/clojure/clojurescript/blob/6eedd0a08c49f7b0d4dcb30977b2fb38c90577bd/src/main/clojure/cljs/repl.cljc#L1207
Comment made by: mfikes
For Eugene's CA status see CLJS-2729.
With CLJS-2924.patch:
`
set! (set! var-symbol expr) (set! (.- instance-expr instanceFieldName-symbol) expr) (set! instance-expr -instanceFieldName-symbol expr) Special Form Used to set vars and JavaScript object fields
Please see http://clojure.org/vars#set `
CLJS-2924.patch LGTM and passes in CI.
CLJS-2924.patch added to Patch Tender (i)