From ba4eeb394c466bf4d64013a71a73ec2c424f14f0 Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Fri, 19 Jan 2018 18:56:44 +0100 Subject: Use Emscripten's MODULARIZE_INSTANCE when building binaryen.js (#1368) --- src/js/binaryen.js-post.js | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/js/binaryen.js-post.js') 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(); -- cgit v1.2.3