File tree 2 files changed +6
-2
lines changed
test/clojure/cljs/analyzer
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1880
1880
(assoc locals e
1881
1881
{:name e
1882
1882
:line (get-line e env)
1883
- :column (get-col e env)})
1883
+ :column (get-col e env)
1884
+ ; ; :local is required for {:op :local ...} nodes
1885
+ ; ; but previously we had no way to figure this out
1886
+ ; ; by adding it here we can recover it later
1887
+ :local :catch })
1884
1888
locals)
1885
1889
catch (when cblock
1886
1890
(disallowing-recur (analyze (assoc catchenv :locals locals) cblock)))
Original file line number Diff line number Diff line change 249
249
(is (= :throw (:op node)))
250
250
(is (s/valid? ::a/node node))))
251
251
252
- #_ (deftest test-try
252
+ (deftest test-try
253
253
(let [node (no-warn (analyze ns-env '(try 1 (catch :default e) (finally ))))]
254
254
(is (= :try (:op node)))
255
255
(is (s/valid? ::a/node node))))
You can’t perform that action at this time.
0 commit comments