Skip to content
Merged
Changes from 1 commit
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
7 changes: 7 additions & 0 deletions src/js/binaryen.js-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,13 @@ function wrapModule(module, self = {}) {
self['optimize'] = function() {
return Module['_BinaryenModuleOptimize'](module);
};
/**
* Updates the internal name mapping logic in a module. This must be called
* after renaming module elements.
*/
self['update_maps'] = function() {
Module['_BinaryenModuleUpdateMaps'](module);
};
self['optimizeFunction'] = function(func) {
if (typeof func === 'string') func = self['getFunction'](func);
return Module['_BinaryenFunctionOptimize'](func, module);
Expand Down
Loading