File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 785
785
(-> info
786
786
(assoc :name (symbol (str (munge info) " .cljs$core$IFn$_invoke$arity$variadic" )))
787
787
; ; bypass local fn-self-name munging, we're emitting direct
788
- (update-in [:info ] dissoc :fn-self-name ))))
788
+ ; ; shadowing already applied
789
+ (update-in [:info ]
790
+ #(-> % (dissoc :shadow ) (dissoc :fn-self-name ))))))
789
791
{:max-fixed-arity mfa}]
790
792
791
793
; ; direct dispatch to specific arity case
797
799
(-> info
798
800
(assoc :name (symbol (str (munge info) " .cljs$core$IFn$_invoke$arity$" arity)))
799
801
; ; bypass local fn-self-name munging, we're emitting direct
800
- (update-in [:info ] dissoc :fn-self-name )))) nil ]
802
+ ; ; shadowing already applied
803
+ (update-in [:info ]
804
+ #(-> % (dissoc :shadow ) (dissoc :fn-self-name )))))) nil ]
801
805
[f nil ]))))
802
806
[f nil ])]
803
807
(emit-wrap env
Original file line number Diff line number Diff line change 2786
2786
(is (= (.getBasis TypeBasis) '[a b]))
2787
2787
(is (= (.getBasis RecordBasis) '[c d e])))
2788
2788
2789
- (deftest test-1212
2789
+ (deftest test-cljs- 1212
2790
2790
(is (= (set {:a 0 :b 0 :c 0 :d 0 :e 0 :f 0 :g 0 :h 0 :i 0 })
2791
2791
#{[:a 0 ] [:b 0 ] [:c 0 ] [:d 0 ] [:e 0 ] [:f 0 ] [:g 0 ] [:h 0 ] [:i 0 ]})))
2792
2792
2807
2807
(is (not= tl (tagged-literal 'x " z" )))
2808
2808
(is (= (hash tl) (hash (tagged-literal 'x " y" ))))))
2809
2809
2810
+ (defn- incme []
2811
+ (let [incme (fn [a queue & args] (inc a))]
2812
+ (incme 1 [1 ] :color " #fff" )))
2813
+
2814
+ (deftest test-cljs-1225
2815
+ (is (= (incme ) 2 )))
2816
+
2810
2817
(comment
2811
2818
; ; ObjMap
2812
2819
; ; (let [ks (map (partial str "foo") (range 500))
You can’t perform that action at this time.
0 commit comments