summaryrefslogtreecommitdiff
path: root/src/js/binaryen.js-extern-pre.js
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-05-07 21:58:25 +0200
committerGitHub <noreply@github.com>2020-05-07 12:58:25 -0700
commitf23bf9a4cd45b7ed03805f217f6c4f645a513822 (patch)
tree90eac139217b610252faa914d293f6277be5d520 /src/js/binaryen.js-extern-pre.js
parenta489568e3641d2431eba94518add65fd928ab86d (diff)
downloadbinaryen-f23bf9a4cd45b7ed03805f217f6c4f645a513822.tar.gz
binaryen-f23bf9a4cd45b7ed03805f217f6c4f645a513822.tar.bz2
binaryen-f23bf9a4cd45b7ed03805f217f6c4f645a513822.zip
Mimic MODULARIZE_INSTANCE (#2838)
Turned out that the behavior of MODULARIZE_INSTANCE, which has been removed from Emscripten lately, cannot be easily reproduced using MODULARIZE. So, instead of modularizing and attempting to undo it, this just uses some good old wrapper code to achieve the same.
Diffstat (limited to 'src/js/binaryen.js-extern-pre.js')
-rw-r--r--src/js/binaryen.js-extern-pre.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/binaryen.js-extern-pre.js b/src/js/binaryen.js-extern-pre.js
new file mode 100644
index 000000000..ded7d3296
--- /dev/null
+++ b/src/js/binaryen.js-extern-pre.js
@@ -0,0 +1,2 @@
+var binaryen = {};
+(function() { \ No newline at end of file