File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10908,7 +10908,6 @@ reduces them without incurring seq initialization"
10908
10908
(defn ^boolean special-symbol?
10909
10909
" Returns true if x names a special form"
10910
10910
[x]
10911
- ; ; If adding new special symbols, be sure to update cljs.analyzer/specials
10912
10911
(contains?
10913
10912
'#{if def fn* do let* loop* letfn* throw try catch finally
10914
10913
recur new set! ns deftype* defrecord* . js* & quote case* var ns*}
Original file line number Diff line number Diff line change 1167
1167
1168
1168
(declare analyze analyze-symbol analyze-seq )
1169
1169
1170
- ; ; If adding new specials, be sure to update cljs.core/special-symbol?
1171
- (def specials '#{if def fn* do let* loop* letfn* throw try catch finally recur new set!
1170
+ ; ; Note: This is the set of parse multimethod dispatch values,
1171
+ ; ; along with '&, and differs from cljs.core/special-symbol?
1172
+ (def specials '#{if def fn* do let* loop* letfn* throw try recur new set!
1172
1173
ns deftype* defrecord* . js* & quote case* var ns*})
1173
1174
1174
1175
(def ^:dynamic *recur-frames* nil )
Original file line number Diff line number Diff line change 1483
1483
(is (= " ##Inf" (pr-str js/Infinity)))
1484
1484
(is (= " ##-Inf" (pr-str js/-Infinity))))
1485
1485
1486
+ (deftest test-cljs-2449
1487
+ (is (= 1 (let [catch identity] (catch 1 ))))
1488
+ (is (= 1 (let [finally identity] (finally 1 )))))
1489
+
1486
1490
(deftype Foo2407 [x y])
1487
1491
(defrecord Bar2407 [x y])
1488
1492
You can’t perform that action at this time.
0 commit comments