Commit 3fa4283
CLJS-2139: Undeclared var regression in fn bodies
With CLJS-2066, a change was made to skip analyzing named fn method
bodies on the first analysis pass, deferring this analyis to the
second, richer pass dedicated to optmizing self calls. Since the second
pass has all warnings suppressed, this introduces a subtle regression
in that no warnings would be emitted for issues found in named function
bodies.
This fixes the issue by turning off the blanket no-warn for the second
pass. Since warnings can only be emitted when analyzing method bodies
(the analysis of parameters doesn't lead to warnings), this is
sufficient to solve the problem.1 parent b1b09bb commit 3fa4283
File tree
2 files changed
+10
-1
lines changed- src
- main/clojure/cljs
- test/clojure/cljs
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1570 | 1570 | | |
1571 | 1571 | | |
1572 | 1572 | | |
1573 | | - | |
| 1573 | + | |
1574 | 1574 | | |
1575 | 1575 | | |
1576 | 1576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
736 | 745 | | |
737 | 746 | | |
738 | 747 | | |
| |||
0 commit comments