Skip to content

Commit 17f64ee

Browse files
authored
Merge pull request #37 from mrsmkl/master
fixed function imports
2 parents e4070b0 + 0e7c8f2 commit 17f64ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json2wasm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const OPCODES = _exports.OPCODES = {
221221

222222
_exports.typeGenerators = {
223223
'function': (json, stream) => {
224-
stream.write([json])
224+
leb.unsigned.write(json, stream)
225225
},
226226
table: (json, stream) => {
227227
stream.write([LANGUAGE_TYPES[json.elementType]])

0 commit comments

Comments
 (0)