Closed taoxinyi closed 5 years ago
I change loadScript(distPath + '/argon2-asm.min.js'); to loadScript(distPath + '/argon2.min.js');, then I can see argon2.wasm is successfully fetched in the browser, but it shows error Cannot read property 'apply' of undefined when using argon.hash.
loadScript(distPath + '/argon2-asm.min.js');
loadScript(distPath + '/argon2.min.js');
argon2.wasm
Cannot read property 'apply' of undefined
argon.hash
Is there an easy way to use wasm?
Hi! There's an example here: https://github.com/antelle/argon2-browser/blob/master/docs/js/calc.js#L67
I change
loadScript(distPath + '/argon2-asm.min.js');
toloadScript(distPath + '/argon2.min.js');
, then I can seeargon2.wasm
is successfully fetched in the browser, but it shows errorCannot read property 'apply' of undefined
when usingargon.hash
.Is there an easy way to use wasm?