1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash rm -rf ./*.wast ./*.wast.js git clone https://github.com/WebAssembly/spec spec mv spec/interpreter/test/*.wast ./ rm -rf spec/ # TODO not handled yet rm -f *.fail.wast for i in $(ls *.wast); do echo "var importedArgs = ['$i']; load(scriptdir + '../spec.js');" > $i.js done;