diff options
Diffstat (limited to 'src/js/binaryen.js-post.js')
-rw-r--r-- | src/js/binaryen.js-post.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index c4e0d62d8..580e9fc4d 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -1563,19 +1563,3 @@ Module['setDebugInfo'] = function(on) { Module['setAPITracing'] = function(on) { return Module['_BinaryenSetAPITracing'](on); }; - -// Instantiates a new unique instance of the API with its own memory etc. -Module['instantiate'] = instantiate; -return Module; - -} // end of instantiate - -// Module loader code borrowed from webpack -if (typeof exports === 'object' && typeof module === 'object') - module.exports = instantiate(); -else if (typeof define === 'function' && define['amd']) - define([], instantiate); -else if (typeof exports === 'object') - exports['Binaryen'] = instantiate(); -else - (typeof self !== "undefined" ? self : this)['Binaryen'] = instantiate(); |