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

Function check_browser_versions

tools/link.py:610–627  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

608
609
610def check_browser_versions():
611 # Map of setting all VM version settings to the minimum version
612 # we support.
613 min_version_settings = {
614 'MIN_FIREFOX_VERSION': feature_matrix.OLDEST_SUPPORTED_FIREFOX,
615 'MIN_CHROME_VERSION': feature_matrix.OLDEST_SUPPORTED_CHROME,
616 'MIN_SAFARI_VERSION': feature_matrix.OLDEST_SUPPORTED_SAFARI,
617 'MIN_NODE_VERSION': feature_matrix.OLDEST_SUPPORTED_NODE,
618 }
619
620 if settings.LEGACY_VM_SUPPORT:
621 # Default all browser versions to zero
622 for key in min_version_settings:
623 default_setting(key, 0)
624
625 for key, oldest in min_version_settings.items():
626 if settings[key] != 0 and settings[key] < oldest:
627 exit_with_error(f'{key} older than {oldest} is not supported')
628
629
630def add_system_js_lib(lib):

Callers 1

phase_linker_setupFunction · 0.85

Calls 2

default_settingFunction · 0.85
exit_with_errorFunction · 0.85

Tested by

no test coverage detected