()
| 988 | exit_with_error(f'Invalid setting "{settings.MODULARIZE}" for MODULARIZE.') |
| 989 | |
| 990 | def limit_incoming_module_api(): |
| 991 | if options.oformat == OFormat.HTML and options.shell_html == DEFAULT_SHELL_HTML: |
| 992 | # Our default shell.html file has minimal set of INCOMING_MODULE_JS_API elements that it expects |
| 993 | default_setting('INCOMING_MODULE_JS_API', 'canvas,monitorRunDependencies,onAbort,onExit,print,setStatus'.split(',')) |
| 994 | else: |
| 995 | default_setting('INCOMING_MODULE_JS_API', []) |
| 996 | |
| 997 | if settings.ASYNCIFY == 1: |
| 998 | # ASYNCIFY=1 wraps only wasm exports so we need to enable legacy |
no test coverage detected