aboutsummaryrefslogtreecommitdiffstats
path: root/ffi
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-11-08 20:51:00 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-11-08 20:51:00 +0800
commitd36093ab29e13e0b35f1462c78c3cf1156395d7c (patch)
treec3f710401e8b88e6f02b9f60fc6701f8b72b01d8 /ffi
parent4298239423fbabae5476ee292b932048f823711d (diff)
downloaddexon-bls-d36093ab29e13e0b35f1462c78c3cf1156395d7c.tar
dexon-bls-d36093ab29e13e0b35f1462c78c3cf1156395d7c.tar.gz
dexon-bls-d36093ab29e13e0b35f1462c78c3cf1156395d7c.tar.bz2
dexon-bls-d36093ab29e13e0b35f1462c78c3cf1156395d7c.tar.lz
dexon-bls-d36093ab29e13e0b35f1462c78c3cf1156395d7c.tar.xz
dexon-bls-d36093ab29e13e0b35f1462c78c3cf1156395d7c.tar.zst
dexon-bls-d36093ab29e13e0b35f1462c78c3cf1156395d7c.zip
[js] fix how to build bls-wasm
Diffstat (limited to 'ffi')
-rw-r--r--ffi/js/pre.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffi/js/pre.js b/ffi/js/pre.js
new file mode 100644
index 0000000..20b649b
--- /dev/null
+++ b/ffi/js/pre.js
@@ -0,0 +1,5 @@
+if (typeof __dirname === 'string') {
+ var Module = {}
+ Module.wasmBinaryFile = __dirname + '/bls_c.wasm'
+}
+