Skip to content

Commit

Permalink
Simplify callExport() since the arguments parameter is const now
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Sep 18, 2018
1 parent 8d82dc6 commit cee67df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/binaryen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,7 @@ ExecutionResult BinaryenEngine::execute(
ModuleInstance instance(module, &interface);

try {
Name main = Name("main");
LiteralList args;
instance.callExport(main, args);
instance.callExport(Name("main"), LiteralList{});
} catch (EndExecution const&) {
// This exception is ignored here because we consider it to be a success.
// It is only a clutch for POSIX style exit()
Expand Down

0 comments on commit cee67df

Please sign in to comment.