Closed
Description
Spawned off from #978, we currently pessmize all slices to be mutable when passed to JS. This conservative decision is required for correctness, but we typically know on a one-off basis that the mutable borrow isn't actually necessary.
We should add a specific method to whitelist particular APIs and switch the to using an immutable slice instead of a mutable one!