#1059 forked some key parts of the hash/maphash package for GopherJS compatibility. golang/go#47342 has been implemented in Go 1.21 to provide a purego implementation of this package which will likely render the GopherJS customizations of this package redundant.
Assuming that proposal is accepted, once it is implemented, we should remove as much of our custom implimentation as possible.