diff --git a/site/source/docs/compiling/Modularized-Output.rst b/site/source/docs/compiling/Modularized-Output.rst index ba2c8a09d7a06..0f62de73ac6e1 100644 --- a/site/source/docs/compiling/Modularized-Output.rst +++ b/site/source/docs/compiling/Modularized-Output.rst @@ -119,7 +119,11 @@ fix in future releses. Current limitations include: object does not work. This is because symbols are exported directly using ES6 module syntax rathar than using a global `Module` object. -* `ccall`/`cwrap`, these depend on the internal `Module` object. +* `ccall`/`cwrap` are not supported (these depend on the internal `Module` + object). + +* :ref:`abort_on_wasm_exceptions` is not supported (requires wrapping wasm + exports). Source Phase Imports (experimental) diff --git a/test/test_core.py b/test/test_core.py index ac06dc7fd498f..92e660d180003 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -9460,6 +9460,7 @@ def test_emscripten_stack(self): self.do_core_test('test_stack_get_free.c') # Tests settings.ABORT_ON_WASM_EXCEPTIONS + @no_modularize_instance('ABORT_ON_WASM_EXCEPTIONS') def test_abort_on_exceptions(self): self.set_setting('ABORT_ON_WASM_EXCEPTIONS') self.set_setting('ALLOW_TABLE_GROWTH') diff --git a/tools/link.py b/tools/link.py index 1bad6be1e0f6d..e9488bdc6daf1 100644 --- a/tools/link.py +++ b/tools/link.py @@ -810,9 +810,11 @@ def limit_incoming_module_api(): default_setting('INCOMING_MODULE_JS_API', []) if settings.MODULARIZE == 'instance': - diagnostics.warning('experimental', '-sMODULARIZE=instance is still experimental. Many features may not work or will change.') + diagnostics.warning('experimental', 'MODULARIZE=instance is still experimental. Many features may not work or will change.') if options.oformat != OFormat.MJS: - exit_with_error('MODULARIZE instance is only compatible with ES module output format') + exit_with_error('MODULARIZE=instance is only compatible with ES module output format') + if settings.ABORT_ON_WASM_EXCEPTIONS: + exit_with_error('MODULARIZE=instance is only compatible with ABORT_ON_WASM_EXCEPTIONS') if 'INCOMING_MODULE_JS_API' in user_settings: for s in ['wasmMemory', 'INITIAL_MEMORY']: if s in settings.INCOMING_MODULE_JS_API: