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

Function run_js_optimizer

tools/building.py:387–391  ·  view source on GitHub ↗
(filename, passes)

Source from the content-addressed store, hash-verified

385
386
387def run_js_optimizer(filename, passes):
388 try:
389 return js_optimizer.run_on_file(filename, passes)
390 except subprocess.CalledProcessError as e:
391 exit_with_error("'%s' failed (%d)", ' '.join(e.cmd), e.returncode)
392
393
394# run JS optimizer on some JS, ignoring asm.js contents if any - just run on it all

Callers 1

wasm2jsFunction · 0.85

Calls 2

exit_with_errorFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected