You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm used this fabulous library to build a quick hashing playground page for my students, but I ran into a little snag when I tried to call setRandomFallback() using the minified distribution build. I included bcrypt.min.js from your dist folder in my page, but trying to call this setRandomFallback() method generated a runtime error saying that the function didn't exist. I switched to the unminified bcrypt.js and everything ran fine without errors.
To be sure, I also did a console.log(dcodeIO.bcrypt) to see what was on the object, and when using the minified version, there was no setRandomFallback() method available. With the unminified version, there was.
I noticed that you said the minified version "has been compiled with Closure Compiler using advanced optimizations." Is it possible that those optimizations are stripping out this method since it's never called by your own code?
The text was updated successfully, but these errors were encountered:
I'm used this fabulous library to build a quick hashing playground page for my students, but I ran into a little snag when I tried to call
setRandomFallback()
using the minified distribution build. I includedbcrypt.min.js
from your dist folder in my page, but trying to call thissetRandomFallback()
method generated a runtime error saying that the function didn't exist. I switched to the unminifiedbcrypt.js
and everything ran fine without errors.To be sure, I also did a
console.log(dcodeIO.bcrypt)
to see what was on the object, and when using the minified version, there was nosetRandomFallback()
method available. With the unminified version, there was.I noticed that you said the minified version "has been compiled with Closure Compiler using advanced optimizations." Is it possible that those optimizations are stripping out this method since it's never called by your own code?
The text was updated successfully, but these errors were encountered: