Add asm.js generation with CRYPTO_ASM env var (#23)

* Add asm.js generation, import via index-asm.js

* Less sed-y, more babel-y

* Throw error when some failed

* CRYPTO_ASM env flag

* CHANGELOG
This commit is contained in:
Jaco Greeff
2019-07-18 15:38:50 +02:00
committed by GitHub
parent 62066e8dcd
commit 72d4ec56b5
21 changed files with 428 additions and 347 deletions
+3
View File
@@ -10,5 +10,8 @@ RUST_BACKTRACE=full rustup run nightly cargo test --release -- --nocapture
echo "*** Testing WASM"
node ./test/wasm.js
echo "*** Testing ASM.js"
CRYPTO_ASM=1 node ./test/asm.js
echo "*** Testing via Jest"
yarn jest ./test/jest.spec.js