MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / limit_incoming_module_api

Function limit_incoming_module_api

tools/link.py:990–995  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

phase_linker_setupFunction · 0.85

Calls 2

default_settingFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected