Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by
λ clj -Srepro -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.879"}}}' -M -m cljs.main --repl-env node -e '(defn destr [& {:keys [a b] :as opts}] [a b opts]) (destr {:a 1})'
#'cljs.user/destr
[nil nil {{:a 1} nil}]

vs.

λ clj -Srepro -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.891"}}}' -M -m cljs.main --repl-env node -e '(defn destr [& {:keys [a b] :as opts}] [a b opts]) (destr {:a 1})'
#'cljs.user/destr
(node:62287) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead. (Triggered by calling emit on process.)
(Use `node --trace-deprecation ...` to show where the warning was created)
Execution error (ExceptionInfo) at cljs.repl/evaluate-form (repl.cljc:577).
Execution error (Error) at (<cljs repl>:1).
No value supplied for key: {:a 1}

(The Node.js deprecation warning is unrelated.)

1.10.891 behaves the same as Clojure 1.10.2 and earlier, so I don't think it's wrong, but if this change is intentional, it might be good to mention it in the release notes.

1 Answer

0 votes
by
 
Best answer

This change is due to CLJS-3324, which was initially not mentioned in the release notes, but is now there.

...