(func)
| 547 | |
| 548 | |
| 549 | def 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 |
nothing calls this directly
no test coverage detected