@@ -203,6 +203,7 @@ def webgpu_disabled():
203203requires_webgpu = unittest .skipIf (webgpu_disabled (), "This test requires WebGPU to be available" )
204204requires_sound_hardware = skipExecIf (os .getenv ('EMTEST_LACKS_SOUND_HARDWARE' ), 'This test requires sound hardware' )
205205requires_offscreen_canvas = skipExecIf (os .getenv ('EMTEST_LACKS_OFFSCREEN_CANVAS' ), 'This test requires a browser with OffscreenCanvas' )
206+ requires_es6_workers = skipExecIf (os .getenv ('EMTEST_LACKS_ES6_WORKERS' ), 'This test requires a browser with ES6 Module Workers support' )
206207
207208
208209class browser (BrowserCore ):
@@ -4732,6 +4733,7 @@ def test_pthread_reltime(self):
47324733 'blob_es6' : (True , True ),
47334734 'url_es6' : (True , False ),
47344735 })
4736+ @requires_es6_workers
47354737 def test_mainScriptUrlOrBlob (self , es6 , use_blob ):
47364738 # TODO: enable this with wasm, currently pthreads/atomics have limitations
47374739 self .set_setting ('EXIT_RUNTIME' )
@@ -5081,6 +5083,7 @@ def test_system(self):
50815083 def test_wasm_worker_hello (self ):
50825084 self .btest_exit ('wasm_worker/hello_wasm_worker.c' , cflags = ['-sWASM_WORKERS' , '-sENVIRONMENT=web' ])
50835085
5086+ @requires_es6_workers
50845087 def test_wasm_worker_hello_export_es6 (self ):
50855088 self .btest_exit ('wasm_worker/hello_wasm_worker.c' , cflags = ['-sWASM_WORKERS' , '-sENVIRONMENT=web' , '-sEXPORT_ES6' ])
50865089
@@ -5474,6 +5477,7 @@ def test_full_js_library_strict(self):
54745477 'audio_params_disabled' : (['-sAUDIO_WORKLET_SUPPORT_AUDIO_PARAMS=0' ],),
54755478 })
54765479 @requires_sound_hardware
5480+ @requires_es6_workers
54775481 def test_audio_worklet (self , args ):
54785482 self .btest_exit ('webaudio/audioworklet.c' , cflags = ['-sAUDIO_WORKLET' , '-sWASM_WORKERS' , '-DTEST_AND_EXIT' ] + args )
54795483
0 commit comments