test: fix flaky test-webcrypto-encrypt-decrypt-aes
- Use a copy of
plaintext
to prevent tampering of the original - Since
subtle.decrypt
returns aPromise
containing anArrayBuffer
andArrayBuffer
s cannot be modified directly, create aBuffer
from it right away so that the modification in the next line works as intended