Closed
Description
As folks are starting to play with the API, at least one person has hit a footgun where they modified the encoded chunk after sending it to the decoder. We should just copy before control returns to JS to avoid this.
Obviously this prevents a zero copy on encoded data path, but generally copying the input data isn't expensive.