diff --git a/utils/jsffi/dyld.mjs b/utils/jsffi/dyld.mjs index 30c0d4dea56cafe86ecea2e28acffcd7041ff852..7395f98d58a584a69fe44725b08e2bc64f7ceca3 100755 --- a/utils/jsffi/dyld.mjs +++ b/utils/jsffi/dyld.mjs @@ -231,10 +231,7 @@ class DyLD { // memory access near this address will trap immediately. // // In JS API i32 is signed, hence this layer of redirection. - static #poison = new WebAssembly.Global( - { value: "i32", mutable: false }, - 0xffffffff - DyLD.#pageSize - ).value; + static #poison = (0xffffffff - DyLD.#pageSize) | 0; // When processing exports, skip the following ones since they're // generated by wasm-ld.