From 2a8db4df2ea2591507c71d8e6847e7ac4f9da3b4 Mon Sep 17 00:00:00 2001 From: davidnolen Date: Fri, 25 Oct 2024 08:48:43 -0400 Subject: [PATCH] * :binding missing :form * next problem, some children might just be nil --- src/main/clojure/cljs/analyzer.cljc | 1 + src/test/clojure/cljs/analyzer/spec_tests.clj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/clojure/cljs/analyzer.cljc b/src/main/clojure/cljs/analyzer.cljc index 376956d8e..4e52de69f 100644 --- a/src/main/clojure/cljs/analyzer.cljc +++ b/src/main/clojure/cljs/analyzer.cljc @@ -2417,6 +2417,7 @@ shadow (or (handle-symbol-local name (get-in env [:locals name])) (get-in env [:js-globals name])) be {:name name + :form name :line line :column col :init init-expr diff --git a/src/test/clojure/cljs/analyzer/spec_tests.clj b/src/test/clojure/cljs/analyzer/spec_tests.clj index b514d6a7d..55ad63637 100644 --- a/src/test/clojure/cljs/analyzer/spec_tests.clj +++ b/src/test/clojure/cljs/analyzer/spec_tests.clj @@ -31,7 +31,7 @@ (test/run-tests) - ;; binding is missing :form + ;; next, problem - some fields are nil (s/explain ::a/node (analyze ns-env '(let [x 1]))) )