summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKleis Auke Wolthuizen <github@kleisauke.nl>2022-11-21 20:27:20 +0100
committerGitHub <noreply@github.com>2022-11-21 11:27:20 -0800
commitea0c800b90713edef9566feb30ccb6d276beb857 (patch)
treef6dd6bfdb72ab5e634f1443472cc805b4ef24921 /src
parent19cb68dd0cfb2070b434ab9a1bd5b5b9d46fe09b (diff)
downloadbinaryen-ea0c800b90713edef9566feb30ccb6d276beb857.tar.gz
binaryen-ea0c800b90713edef9566feb30ccb6d276beb857.tar.bz2
binaryen-ea0c800b90713edef9566feb30ccb6d276beb857.zip
Remove `-sEXPORT_ES6` + Node.js workaround for binaryen.js (#5235)
This workaround is no longer needed after commit emscripten-core/emscripten@ce4c405.
Diffstat (limited to 'src')
-rw-r--r--src/js/binaryen.js-extern-pre.js11
-rw-r--r--src/js/binaryen.jsoo-extern-pre.js1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/js/binaryen.js-extern-pre.js b/src/js/binaryen.js-extern-pre.js
deleted file mode 100644
index 6c1ff4c07..000000000
--- a/src/js/binaryen.js-extern-pre.js
+++ /dev/null
@@ -1,11 +0,0 @@
-// FIXME: The Emscripten shell requires this variable to be present, even though
-// we are building to ES6 (where it doesn't exist) and the .wasm blob is inlined
-// see: https://github.com/emscripten-core/emscripten/issues/11792
-var __dirname = "";
-
-// FIXME: The Emscripten shell requires this function to be present, even though
-// we are building to ESM (where it doesn't exist) and the result is not used
-// see: https://github.com/emscripten-core/emscripten/pull/17851
-function require() {
- return {};
-}
diff --git a/src/js/binaryen.jsoo-extern-pre.js b/src/js/binaryen.jsoo-extern-pre.js
index fdfee1c22..691741270 100644
--- a/src/js/binaryen.jsoo-extern-pre.js
+++ b/src/js/binaryen.jsoo-extern-pre.js
@@ -1,5 +1,4 @@
// js_of_ocaml needs a special syntax for exposing variables to the compiler
-// and it is not built for nodejs so we don't need the __dirname hack
//Provides: Binaryen
var Binaryen = {};