lib/index.js
function createWasmModule(source, wasm) {
    var length = wasm.length;
    var buffer = [];
    for (var i = 0; i < length; i += 1) {
        buffer.push(wasm[i]);
    }
    var module = "var buffer = new ArrayBuffer(" + wasm.length + ");\n        var uint8 = new Uint8Array(buffer);\n        uint8.set([" + buffer.join(',') + "]);\n        " + wasmFooter;
    return module;
}
function createWasmModule(source, wasm) {
    var length = wasm.length;
    var buffer = [];
    for (var i = 0; i < length; i += 1) {
        buffer.push(wasm[i]);
    }
    var module = "var buffer = new ArrayBuffer(" + wasm.length + ");\n        var uint8 = new Uint8Array(buffer);\n        uint8.set([" + buffer.join(',') + "]);\n        " + wasmFooter;
    return module;
}
function createWasmModule ( source , wasm ) { var length = wasm . length ; var buffer = [ ] ; for ( var i = 0 ; i < length ; i += 1 ) { buffer . push ( wasm [ i ] ) ; } var module = "var buffer = new ArrayBuffer(" + wasm . length + ");\n        var uint8 = new Uint8Array(buffer);\n        uint8.set([" + buffer . join ( ',' ) + "]);\n        " + wasmFooter ; return module ; }
Create a module using WebAssembly.Module
@param {string} source assemblyscript source
@param {Buffer} wasm WebAssembly Buffer
@returns {string} module string
Create a module using WebAssembly . Module