diff options
Diffstat (limited to 'src/js/binaryen.js-extern-pre.js')
-rw-r--r-- | src/js/binaryen.js-extern-pre.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/js/binaryen.js-extern-pre.js b/src/js/binaryen.js-extern-pre.js index 50c38c333..6c1ff4c07 100644 --- a/src/js/binaryen.js-extern-pre.js +++ b/src/js/binaryen.js-extern-pre.js @@ -2,3 +2,10 @@ // 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 {}; +} |