diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/js/binaryen.js-extern-pre.js | 11 | ||||
-rw-r--r-- | src/js/binaryen.jsoo-extern-pre.js | 1 |
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 = {}; |