Skip to content

Commit 3527e6b

Browse files
authored
[MODULARIZE=instance] Mark ASYNCIFY_LAZY_LOAD_CODE as not supported. NFC (#24341)
1 parent 7f2c9bf commit 3527e6b

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

site/source/docs/compiling/Modularized-Output.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ fix in future releses. Current limitations include:
119119
global does not work. This is because symbols are exported directly using
120120
ES6 module syntax rathar than using the ``Module`` global.
121121

122+
* The ``wasmExports`` internal global does not exist.
123+
122124
* `ccall`/`cwrap` are not supported (depends on the ``Module`` global).
123125

124126
* :ref:`abort_on_wasm_exceptions` is not supported (requires wrapping wasm
@@ -128,6 +130,9 @@ fix in future releses. Current limitations include:
128130

129131
* :ref:`asyncify` is not supported (depends on :ref:`dyncalls`)
130132

133+
* :ref:`asyncify_lazy_load_code` is not supported (depends on ``wasmExports``
134+
global)
135+
131136
* The output of file_packager is not compatible so :ref:`emcc-preload-file` and
132137
:ref:`emcc-embed-file` do not work.
133138

test/test_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8316,6 +8316,7 @@ def test_pthread_join_and_asyncify(self):
83168316
'-pthread', '-sPROXY_TO_PTHREAD'])
83178317

83188318
@no_asan('asyncify stack operations confuse asan')
8319+
@no_modularize_instance('ASYNCIFY_LAZY_LOAD_CODE is not compatible with MODULARIZE=instance')
83198320
@no_wasm2js('TODO: lazy loading in wasm2js')
83208321
@parameterized({
83218322
'': (False,),

tools/link.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,8 @@ def limit_incoming_module_api():
826826
exit_with_error('MODULARIZE=instance is not compatible with -sASYNCIFY=1')
827827
if settings.DYNCALLS:
828828
exit_with_error('MODULARIZE=instance is not compatible with -sDYNCALLS')
829+
if settings.ASYNCIFY_LAZY_LOAD_CODE:
830+
exit_with_error('MODULARIZE=instance is not compatible with -sASYNCIFY_LAZY_LOAD_CODE')
829831
if options.use_preload_plugins or len(options.preload_files):
830832
exit_with_error('MODULARIZE=instance is not compatible with --embed-file/--preload-file')
831833
if 'INCOMING_MODULE_JS_API' in user_settings:

0 commit comments

Comments
 (0)