(self)
| 467 | return all(f not in self.cflags for f in prohibited) and any(f in self.cflags for f in required) |
| 468 | |
| 469 | def setup_esm_integration(self): |
| 470 | self.require_node_25() |
| 471 | # Using instance phase imports current generates am ExperimentalWarning under node. |
| 472 | self.node_args += ['--no-warnings'] |
| 473 | self.set_setting('WASM_ESM_INTEGRATION') |
| 474 | self.cflags += ['-Wno-experimental'] |
| 475 | if self.is_wasm64(): |
| 476 | self.skipTest('wasm64 requires wasm export wrappers') |
| 477 | if self.is_wasm2js(): |
| 478 | self.skipTest('WASM_ESM_INTEGRATION is not compatible with wasm2js') |
| 479 | |
| 480 | # Use closure in some tests for some additional coverage |
| 481 | def maybe_closure(self): |
no test coverage detected