File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,12 +115,14 @@ async function loadWasm() {
115115 const module = await WebAssembly . compile ( bytes ) ;
116116 const importObject = buildWasmImportObject ( module ) ;
117117 const instance = await WebAssembly . instantiate ( module , importObject ) ;
118- if ( ! validateWasmExports ( instance . exports ) ) {
119- throw new Error ( "Exports WASM incompatibles avec l'interface Cellcosmos." ) ;
120- }
121118 wasm = instance . exports ;
122119 wasmAvailable = true ;
123- status . textContent = "Moteur WASM charg\u00e9 depuis les sources Multilingual." ;
120+ if ( validateWasmExports ( instance . exports ) ) {
121+ status . textContent = "Moteur WASM charg\u00e9 depuis les sources Multilingual." ;
122+ } else {
123+ status . textContent = "Moteur WASM charge partiellement, avec repli JavaScript selon les fonctions disponibles." ;
124+ console . warn ( "Exports WASM partiellement compatibles avec l'interface Cellcosmos." ) ;
125+ }
124126 } catch ( error ) {
125127 wasm = null ;
126128 wasmAvailable = false ;
You can’t perform that action at this time.
0 commit comments