Commit 146e8d4
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+.
Change-Id: I4f113db0c572ec0b81ebfecf5a137145f6c8c41d
GitHub-Last-Rev: 94ebb39
GitHub-Pull-Request: #48346
Reviewed-on: https://go-review.googlesource.com/c/go/+/349469
Reviewed-by: Keith Randall <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Trust: Keith Randall <[email protected]>
Run-TryBot: Keith Randall <[email protected]>
TryBot-Result: Go Bot <[email protected]>1 parent 9a58aa2 commit 146e8d4
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