File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -10395,7 +10395,13 @@ reduces them without incurring seq initialization"
10395
10395
10396
10396
IPending
10397
10397
(-realized? [x]
10398
- (not f)))
10398
+ (not f))
10399
+
10400
+ IPrintWithWriter
10401
+ (-pr-writer [x writer opts]
10402
+ (-write writer " #object[cljs.core.Delay " )
10403
+ (pr-writer {:status (if (nil? f) :ready :pending ), :val value} writer opts)
10404
+ (-write writer " ]" )))
10399
10405
10400
10406
(defn ^boolean delay?
10401
10407
" returns true if x is a Delay created with delay"
Original file line number Diff line number Diff line change 1633
1633
(is (= " xyzzy" (str " x" " y" " z" " z" " y" )))
1634
1634
(is (= " a1b2c3" (str " a" 1 " b" 2 " c" 3 ))))
1635
1635
1636
+ (deftest test-cljs-2934
1637
+ (let [x (delay 1 )]
1638
+ (is (= " #object[cljs.core.Delay {:status :pending, :val nil}]" (pr-str x)))
1639
+ (force x)
1640
+ (is (= " #object[cljs.core.Delay {:status :ready, :val 1}]" (pr-str x)))))
1641
+
1636
1642
(deftest test-cljs-2943
1637
1643
(let [m1 {:a 2 , :b 3 , :c 5 }
1638
1644
m2 {:a 7 , :b 11 , :d 13 , :e 17 }
You can’t perform that action at this time.
0 commit comments