1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

wasm bug check: use a function more likely to be present in minimal builds

This commit is contained in:
Frank Denis 2018-03-06 10:56:05 +01:00
parent cab7cc6a88
commit 6382b91060

View File

@ -102,7 +102,7 @@ if [ "$DIST" = yes ]; then
Module.onRuntimeInitialized = function () { Module.onRuntimeInitialized = function () {
try { try {
/* Test arbitrary wasm function */ /* Test arbitrary wasm function */
Module._crypto_stream_chacha20_keybytes(); Module._crypto_secretbox_keybytes();
resolve(); resolve();
} catch (err) { } catch (err) {
reject(err); reject(err);