File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ define([
288288 * @see {@link https://developer.mozilla.org/en-US/docs/WebAssembly }
289289 */
290290 FeatureDetection . supportsWebAssembly = function ( ) {
291- return typeof WebAssembly !== 'undefined' && ! FeatureDetection . isEdge ;
291+ return typeof WebAssembly !== 'undefined' && ! FeatureDetection . isEdge ( ) ;
292292 } ;
293293
294294 return FeatureDetection ;
Original file line number Diff line number Diff line change @@ -177,13 +177,16 @@ defineSuite([
177177 taskProcessor = new TaskProcessor ( 'returnWasmConfig' , 5 ) ;
178178 var promise = taskProcessor . initWebAssemblyModule ( {
179179 modulePath : 'TestWasm/testWasmWrapper' ,
180- wasmBinaryFile : binaryUrl
180+ wasmBinaryFile : binaryUrl ,
181+ fallbackModulePath : 'TestWasm/testWasmFallback'
181182 } ) ;
182183
183184 return promise . then ( function ( result ) {
184185 expect ( result ) . toBeDefined ( ) ;
185- expect ( result . modulePath ) . toMatch ( / T e s t W a s m \/ t e s t W a s m W r a p p e r / ) ;
186- expect ( result . wasmBinary ) . toBeDefined ( ) ;
186+ if ( FeatureDetection . supportsWebAssembly ( ) ) {
187+ expect ( result . modulePath ) . toMatch ( / T e s t W a s m \/ t e s t W a s m W r a p p e r / ) ;
188+ expect ( result . wasmBinary ) . toBeDefined ( ) ;
189+ }
187190 } ) ;
188191 } ) ;
189192
You can’t perform that action at this time.
0 commit comments