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

Function auto_enable_features

tools/feature_matrix.py:286–292  ·  view source on GitHub ↗

Enable settings based on usable features.

()

Source from the content-addressed store, hash-verified

284
285
286def auto_enable_features():
287 """Enable settings based on usable features."""
288 # TODO(sbc): Find make a generic way to expose the feature matrix to JS
289 # compiler rather then adding them all ad-hoc as internal settings
290 default_setting('WASM_BIGINT', caniuse(Feature.JS_BIGINT_INTEGRATION))
291 if caniuse(Feature.GROWABLE_ARRAYBUFFERS):
292 default_setting('GROWABLE_ARRAYBUFFERS', 2)

Callers

nothing calls this directly

Calls 2

default_settingFunction · 0.85
caniuseFunction · 0.85

Tested by

no test coverage detected