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

Function check_symbol_mapping

tools/js_optimizer.py:213–220  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

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();')

Callers 1

run_on_fileFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected