MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / also_with_modularize

Function also_with_modularize

test/decorators.py:549–566  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

547
548
549def also_with_modularize(func):
550 assert callable(func)
551
552 @wraps(func)
553 def metafunc(self, modularize, *args, **kwargs):
554 if modularize:
555 if self.get_setting('DECLARE_ASM_MODULE_EXPORTS') == 0:
556 self.skipTest('DECLARE_ASM_MODULE_EXPORTS=0 is not compatible with MODULARIZE')
557 if self.get_setting('STRICT_JS'):
558 self.skipTest('MODULARIZE is not compatible with STRICT_JS')
559 if self.get_setting('WASM_ESM_INTEGRATION'):
560 self.skipTest('MODULARIZE is not compatible with WASM_ESM_INTEGRATION')
561 self.cflags += ['--extern-post-js', test_file('modularize_post_js.js'), '-sMODULARIZE']
562 return func(self, *args, **kwargs)
563
564 parameterize(metafunc, {'': (False,),
565 'modularize': (True,)})
566 return metafunc
567
568
569# Tests exception handling and setjmp/longjmp handling. This tests three

Callers

nothing calls this directly

Calls 1

parameterizeFunction · 0.85

Tested by

no test coverage detected