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

Function require_engine

test/jsrun.py:73–83  ·  view source on GitHub ↗
(engine)

Source from the content-addressed store, hash-verified

71
72
73def require_engine(engine):
74 engine_path = engine[0]
75 # if None is the "engine", it means we compiled to a native executable;
76 # there is no engine to check here
77 if engine_path is None:
78 return
79 if engine_path not in WORKING_ENGINES:
80 check_engine(engine)
81 if not WORKING_ENGINES[engine_path]:
82 logging.critical('The engine (%s) does not seem to work, check the paths in the config file' % engine)
83 sys.exit(1)
84
85
86def run_js(filename, engine, args=None,

Callers 1

run_jsFunction · 0.85

Calls 1

check_engineFunction · 0.85

Tested by

no test coverage detected