File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2457,7 +2457,7 @@ reduces them without incurring seq initialization"
2457
2457
(let [a (to-array coll)]
2458
2458
; ; matching Clojure's stable sort, though docs don't promise it
2459
2459
(garray/stableSort a (fn->comparator comp))
2460
- (seq a))
2460
+ (with-meta ( seq a) ( meta coll) ))
2461
2461
())))
2462
2462
2463
2463
(defn sort-by
Original file line number Diff line number Diff line change 1738
1738
(is (= (symbol (->Var nil 'bar/foo nil )) 'bar/foo))
1739
1739
(is (thrown? js/Error (symbol 1 ))))
1740
1740
1741
+ (deftest test-cljs-2959
1742
+ (is (= {:a true } (meta (sort (with-meta (range 10 ) {:a true })))))
1743
+ (is (= {:a true } (meta (sort-by :a (with-meta (seq [{:a 5 } {:a 2 } {:a 3 }]) {:a true }))))))
1744
+
1741
1745
(deftest test-cljs-2991
1742
1746
(let [o (js-obj )]
1743
1747
(is (object? o))
You can’t perform that action at this time.
0 commit comments