Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions bin/binaryen.js

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions bin/wasm.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/binaryen-c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ void BinaryenModuleDispose(BinaryenModuleRef module) {
functionTypes.clear();
expressions.clear();
functions.clear();
imports.clear();
exports.clear();
relooperBlocks.clear();
}

Expand Down
2 changes: 1 addition & 1 deletion test/binaryen.js/kitchen-sink.js.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,7 @@ getExpressionInfo(f64.const)={"id":15,"type":4,"value":9.5}
BinaryenType paramTypes[] = { 1 };
functionTypes[1] = BinaryenAddFunctionType(the_module, "vi", 0, paramTypes, 1);
}
imports[1] = BinaryenAddFunctionImport(the_module, "check", "module", "check", functionTypes[1]);
imports[0] = BinaryenAddFunctionImport(the_module, "check", "module", "check", functionTypes[1]);
the_relooper = RelooperCreate();
expressions[1] = BinaryenConst(the_module, BinaryenLiteralInt32(1337));
{
Expand Down
2 changes: 1 addition & 1 deletion test/example/c-api-kitchen-sink.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1988,7 +1988,7 @@ int main() {
BinaryenType paramTypes[] = { 1 };
functionTypes[1] = BinaryenAddFunctionType(the_module, "vi", 0, paramTypes, 1);
}
imports[1] = BinaryenAddFunctionImport(the_module, "check", "module", "check", functionTypes[1]);
imports[0] = BinaryenAddFunctionImport(the_module, "check", "module", "check", functionTypes[1]);
the_relooper = RelooperCreate();
expressions[1] = BinaryenConst(the_module, BinaryenLiteralInt32(1337));
{
Expand Down