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

Function get_engine

test/common.py:320–325  ·  view source on GitHub ↗

Return engine that satifies predicate, if one is configured, otherwise None.

(predicate)

Source from the content-addressed store, hash-verified

318
319
320def get_engine(predicate):
321 """Return engine that satifies predicate, if one is configured, otherwise None."""
322 for engine in config.JS_ENGINES:
323 if predicate(engine):
324 return engine
325 return None
326
327
328def get_nodejs():

Callers 5

get_nodejsFunction · 0.85
get_v8Function · 0.85
get_spidermonkeyFunction · 0.85
get_bunFunction · 0.85
get_denoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected