From 76d0cd31aaae5d1cbed54a1ea8a5baa270209c29 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 24 Feb 2023 15:16:58 +0100 Subject: [PATCH] Assume wasm mini never needs simd, and main one does Signed-off-by: falkTX --- src/emscripten/CardinalMini.html | 6 ------ src/emscripten/CardinalNative.html | 5 +---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/emscripten/CardinalMini.html b/src/emscripten/CardinalMini.html index 2de614a..ee0ed28 100644 --- a/src/emscripten/CardinalMini.html +++ b/src/emscripten/CardinalMini.html @@ -118,15 +118,9 @@ if (!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11]))) { wasmErrors.push('Bulk Memory Operations unsupported'); } - if (!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11]))) { - wasmErrors.push('Exception handling unsupported'); - } if (!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,2,8,1,1,97,1,98,3,127,1,6,6,1,127,1,65,0,11,7,5,1,1,97,3,1]))) { wasmErrors.push('Importable/Exportable mutable globals unsupported'); } - if (window.location.host !== "minicardinal.kx.studio" && !WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))) { - wasmErrors.push('Fixed-Width SIMD unsupported'); - } } if (wasmErrors.length !== 0) { diff --git a/src/emscripten/CardinalNative.html b/src/emscripten/CardinalNative.html index d941f50..c82a928 100644 --- a/src/emscripten/CardinalNative.html +++ b/src/emscripten/CardinalNative.html @@ -118,13 +118,10 @@ if (!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11]))) { wasmErrors.push('Bulk Memory Operations unsupported'); } - if (!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11]))) { - wasmErrors.push('Exception handling unsupported'); - } if (!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,2,8,1,1,97,1,98,3,127,1,6,6,1,127,1,65,0,11,7,5,1,1,97,3,1]))) { wasmErrors.push('Importable/Exportable mutable globals unsupported'); } - if (window.location.host !== "minicardinal.kx.studio" && !WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))) { + if (!WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))) { wasmErrors.push('Fixed-Width SIMD unsupported'); } }