Tests deriveBits() with various bad parameters for PBKDF2 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". Importing the password... SUCCESS Deriving 100 bits... SUCCESS (rejected): OperationError: Length for PBKDF2 key derivation must be a multiple of 8 bits. Deriving using iterations=0... SUCCESS (rejected): OperationError: PBKDF2 requires iterations > 0 Deriving using iterations=-10... SUCCESS (rejected): TypeError: Failed to execute 'deriveBits' on 'SubtleCrypto': Pbkdf2Params: iterations: Outside of numeric range Deriving using length -10... SUCCESS (rejected): OperationError: Length for PBKDF2 key derivation must be a multiple of 8 bits. PASS successfullyParsed is true TEST COMPLETE