Commit 358e563
CLJS-1611: Function arity dispatch returns arity
Variadic and multi-arity defn forms expand to code that perform the
needed def, followed by some side-effecting code. Instead of returning
the value of the last side-effecting form, conditionally return a var
for the name if :def-emits-vars is true, otherwise nil (which gets
elided from compiled JavaScript.)1 parent fc5a45b commit 358e563
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2773 | 2773 | | |
2774 | 2774 | | |
2775 | 2775 | | |
2776 | | - | |
| 2776 | + | |
2777 | 2777 | | |
2778 | 2778 | | |
2779 | 2779 | | |
| |||
2797 | 2797 | | |
2798 | 2798 | | |
2799 | 2799 | | |
2800 | | - | |
| 2800 | + | |
| 2801 | + | |
2801 | 2802 | | |
2802 | 2803 | | |
2803 | 2804 | | |
| |||
2807 | 2808 | | |
2808 | 2809 | | |
2809 | 2810 | | |
2810 | | - | |
| 2811 | + | |
2811 | 2812 | | |
2812 | 2813 | | |
2813 | 2814 | | |
| |||
2863 | 2864 | | |
2864 | 2865 | | |
2865 | 2866 | | |
2866 | | - | |
| 2867 | + | |
| 2868 | + | |
2867 | 2869 | | |
2868 | 2870 | | |
2869 | 2871 | | |
| |||
2932 | 2934 | | |
2933 | 2935 | | |
2934 | 2936 | | |
2935 | | - | |
| 2937 | + | |
2936 | 2938 | | |
2937 | 2939 | | |
2938 | 2940 | | |
2939 | 2941 | | |
2940 | 2942 | | |
2941 | | - | |
| 2943 | + | |
2942 | 2944 | | |
2943 | 2945 | | |
2944 | 2946 | | |
| |||
0 commit comments