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

Function get_acorn_cmd

tools/js_optimizer.py:39–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def get_acorn_cmd():
40 node = config.NODE_JS
41 if not any('--stack-size' in arg for arg in node):
42 # Use an 8Mb stack (rather than the ~1Mb default) when running the
43 # js optimizer since larger inputs can cause terser to use a lot of stack.
44 node.append('--stack-size=8192')
45 return [*node, ACORN_OPTIMIZER]
46
47
48def split_funcs(js):

Callers 2

minify_shellMethod · 0.85
run_on_fileFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected