Commit 94ebb39
committed
reflect: Use Value.Len instead of conversion to slice header.
This change is functionally equivalent, but reduces reliance on unsafe
features. This would allow GopherJS to avoid an additional patch to the
standard library we'd have to maintain in order to remain compatible
with Go 1.17+.1 parent ad97d20 commit 94ebb39
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2940 | 2940 | | |
2941 | 2941 | | |
2942 | 2942 | | |
2943 | | - | |
2944 | | - | |
| 2943 | + | |
2945 | 2944 | | |
2946 | 2945 | | |
2947 | 2946 | | |
| |||
3208 | 3207 | | |
3209 | 3208 | | |
3210 | 3209 | | |
3211 | | - | |
3212 | | - | |
3213 | | - | |
| 3210 | + | |
| 3211 | + | |
3214 | 3212 | | |
| 3213 | + | |
3215 | 3214 | | |
3216 | 3215 | | |
3217 | 3216 | | |
| |||
0 commit comments