ransform({ role : 'decrypt', authenticationSize: 10 });
    const receiverWriter = receiverTransform.writable.getWriter();
    receiverTransform.setEncryptionKey(key);

    // decryption should fail, leading to erroring the transform.
    await promise_rejects_js(test, TypeError, receiverWriter.write({ }));
    await promise_rejects_js(test, TypeError, receiverWriter.closed);
}, "SFrame transform gets errored if trying to process unexpected value types");

        </script>
    </body>
</html>
