()
| 37 | |
| 38 | |
| 39 | def 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 | |
| 48 | def split_funcs(js): |
no test coverage detected