Cleanup some more CI details, auto-load nosimd wasm
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
26e206f3d8
commit
5a53cd37b8
6 changed files with 103 additions and 230 deletions
|
|
@ -115,9 +115,6 @@
|
|||
if (typeof(WebAssembly) === "undefined") {
|
||||
wasmErrors.push('WebAssembly unsupported');
|
||||
} else {
|
||||
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,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');
|
||||
}
|
||||
|
|
@ -188,8 +185,19 @@
|
|||
if (text) console.error('[post-exception status] ' + text);
|
||||
};
|
||||
};
|
||||
|
||||
var jsModuleName;
|
||||
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]))) {
|
||||
jsModuleName = "CardinalMini-nosimd.js";
|
||||
} else {
|
||||
jsModuleName = "CardinalMini.js";
|
||||
}
|
||||
var jsModuleScript = document.createElement('script');
|
||||
jsModuleScript.setAttribute('async', true);
|
||||
jsModuleScript.setAttribute('src', jsModuleName);
|
||||
jsModuleScript.setAttribute('type','text/javascript');
|
||||
document.head.appendChild(jsModuleScript);
|
||||
}
|
||||
</script>
|
||||
{{{ SCRIPT }}}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue