summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/binaryen.js-post.js16
-rw-r--r--src/js/binaryen.js-pre.js2
2 files changed, 0 insertions, 18 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();
diff --git a/src/js/binaryen.js-pre.js b/src/js/binaryen.js-pre.js
deleted file mode 100644
index da0e8e6c8..000000000
--- a/src/js/binaryen.js-pre.js
+++ /dev/null
@@ -1,2 +0,0 @@
-function instantiate(Module) {
- Module = Module || {};