(p)
| 211 | minifier = Minifier(js) |
| 212 | |
| 213 | def check_symbol_mapping(p): |
| 214 | if p.startswith('symbolMap='): |
| 215 | minifier.symbols_file = p.split('=', 1)[1] |
| 216 | return False |
| 217 | if p == 'profilingFuncs': |
| 218 | minifier.profiling_funcs = True |
| 219 | return False |
| 220 | return True |
| 221 | |
| 222 | passes = [p for p in passes if check_symbol_mapping(p)] |
| 223 | asm_shell_pre, asm_shell_post = minifier.minify_shell(asm_shell, '--minify-whitespace' in passes).split('EMSCRIPTEN_FUNCS();') |