digest-auth-request icon indicating copy to clipboard operation
digest-auth-request copied to clipboard

Potential override of CryptoJS with undefined

Open Dreikantbrot opened this issue 5 years ago • 0 comments

I recently ran into a problem where digestAuthRequest told me that CryptoJS was not defined, even if it was actually loaded. The problem seems to stem from line 11 where, I assume due to variable hoisting, a new var for CryptoJS is being declared, even if the above condition is not met.

This basically creates a variable CryptoJS which is locally scoped to digestAuthRequest and set to undefined.

Dreikantbrot avatar Feb 26 '20 11:02 Dreikantbrot