diff --git a/test/common.py b/test/common.py index a6b37f77f07ea..3136b9c544df4 100644 --- a/test/common.py +++ b/test/common.py @@ -1123,6 +1123,8 @@ def require_jspi(self): self.set_setting('JSPI') if self.is_wasm2js(): self.skipTest('JSPI is not currently supported for WASM2JS') + if self.get_setting('WASM_ESM_INTEGRATION'): + self.skipTest('WASM_ESM_INTEGRATION is not compatible with JSPI') if self.is_browser_test(): if 'EMTEST_SKIP_JSPI' in os.environ: diff --git a/tools/link.py b/tools/link.py index 1dbcb738e4406..8c814754e5961 100644 --- a/tools/link.py +++ b/tools/link.py @@ -808,8 +808,8 @@ def phase_linker_setup(options, linker_args): # noqa: C901, PLR0912, PLR0915 exit_with_error('WASM_ESM_INTEGRATION requires MODULARIZE=instance') if settings.RELOCATABLE: exit_with_error('WASM_ESM_INTEGRATION is not compatible with dynamic linking') - if settings.ASYNCIFY == 1: - exit_with_error('WASM_ESM_INTEGRATION is not compatible with -sASYNCIFY=1') + if settings.ASYNCIFY: + exit_with_error('WASM_ESM_INTEGRATION is not compatible with -sASYNCIFY') if settings.WASM_WORKERS or settings.PTHREADS: exit_with_error('WASM_ESM_INTEGRATION is not compatible with multi-threading') if settings.USE_OFFSET_CONVERTER: