Commit 6938fce
authored
...introduced by me in #24792. Sorry.
This fix doesn't avoid copying the `restrictedBody` twice in the
generated code but has the benefit of working.
Proper fix needs a detection that can set a const bool for a module
once. `when nimvm` is restricted in use and is difficult to dance
around. Some details in: #12517, #12518, #13038
I might have copied the buggy solution from some discussion and it might
have worked at some point, but it's small excuse.
1 parent e958f4a commit 6938fce
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2847 | 2847 | | |
2848 | 2848 | | |
2849 | 2849 | | |
2850 | | - | |
| 2850 | + | |
| 2851 | + | |
2851 | 2852 | | |
2852 | | - | |
| 2853 | + | |
2853 | 2854 | | |
2854 | | - | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
2855 | 2859 | | |
2856 | 2860 | | |
2857 | 2861 | | |
| |||
2873 | 2877 | | |
2874 | 2878 | | |
2875 | 2879 | | |
2876 | | - | |
| 2880 | + | |
2877 | 2881 | | |
2878 | 2882 | | |
2879 | | - | |
| 2883 | + | |
2880 | 2884 | | |
2881 | 2885 | | |
2882 | 2886 | | |
| |||
2908 | 2912 | | |
2909 | 2913 | | |
2910 | 2914 | | |
2911 | | - | |
| 2915 | + | |
2912 | 2916 | | |
2913 | 2917 | | |
2914 | | - | |
| 2918 | + | |
2915 | 2919 | | |
2916 | 2920 | | |
2917 | 2921 | | |
| |||
0 commit comments