Skip to content

Commit 0e7c8f2

Browse files
committed
fixed function imports
1 parent e4070b0 commit 0e7c8f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json2wasm.js

Lines changed: 1 addition & 1 deletion
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)