fix(ext/web): snapshot SharedArrayBuffer input in TextDecoder.decode() (#36611)